mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 23:23:12 +01: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
@ -362,9 +362,11 @@ fn main() -> Result<()> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
Ok(Signal::CtrlC) => {
|
Ok(Signal::CtrlC) => {
|
||||||
println!("Ctrl-c");
|
// `Reedline` clears the line content. New prompt is shown
|
||||||
}
|
}
|
||||||
Ok(Signal::CtrlD) => {
|
Ok(Signal::CtrlD) => {
|
||||||
|
// When exiting clear to a new line
|
||||||
|
println!();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Ok(Signal::CtrlL) => {
|
Ok(Signal::CtrlL) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user