From 0d64ff47c77ba880520f1740e7297afccb9035de Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Tue, 21 Feb 2023 06:22:27 -0600 Subject: [PATCH] actually exit the shell with ctrl+d --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3f1af89..cc77b8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -334,11 +334,11 @@ fn main() -> Result<()> { prompt.print()?; line.clear(); } - } else if key_code == 67 + } else if key_code == 68 && (modifiers & Console::LEFT_CTRL_PRESSED == Console::LEFT_CTRL_PRESSED) { - // this is CTRL+C + // this is CTRL+D CloseHandle(stdout); return Ok(()); } else if key_code == 74