actually exit the shell with ctrl+d

parse-tree
Jordan Orelli 2 years ago
parent b8e001f008
commit 0d64ff47c7

@ -334,11 +334,11 @@ fn main() -> Result<()> {
prompt.print()?; prompt.print()?;
line.clear(); line.clear();
} }
} else if key_code == 67 } else if key_code == 68
&& (modifiers & Console::LEFT_CTRL_PRESSED && (modifiers & Console::LEFT_CTRL_PRESSED
== Console::LEFT_CTRL_PRESSED) == Console::LEFT_CTRL_PRESSED)
{ {
// this is CTRL+C // this is CTRL+D
CloseHandle(stdout); CloseHandle(stdout);
return Ok(()); return Ok(());
} else if key_code == 74 } else if key_code == 74

Loading…
Cancel
Save