mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +00:00
Fix Ctrl-D
exit in cli (#508)
Clears to a new line for the potentially hosting process Remove the output for `Ctrl-C`
This commit is contained in:
parent
bf6780967b
commit
efb4a9f95c
1 changed files with 3 additions and 1 deletions
|
@ -362,9 +362,11 @@ fn main() -> Result<()> {
|
|||
);
|
||||
}
|
||||
Ok(Signal::CtrlC) => {
|
||||
println!("Ctrl-c");
|
||||
// `Reedline` clears the line content. New prompt is shown
|
||||
}
|
||||
Ok(Signal::CtrlD) => {
|
||||
// When exiting clear to a new line
|
||||
println!();
|
||||
break;
|
||||
}
|
||||
Ok(Signal::CtrlL) => {
|
||||
|
|
Loading…
Reference in a new issue