|
|
@ -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
|
|
|
|