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()?;
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

Loading…
Cancel
Save