mirror of
https://github.com/sigoden/aichat
synced 2024-11-04 18:00:20 +00:00
refactor: change ctrlc message text
This commit is contained in:
parent
2738988fc4
commit
2280010959
@ -131,11 +131,15 @@ impl Repl {
|
||||
}
|
||||
Ok(Signal::CtrlC) => {
|
||||
self.abort.set_ctrlc();
|
||||
if already_ctrlc && ctrlc_exit {
|
||||
break;
|
||||
if ctrlc_exit {
|
||||
if already_ctrlc {
|
||||
break;
|
||||
}
|
||||
already_ctrlc = true;
|
||||
println!("(To exit, press Ctrl+C again or Ctrl+D or type .exit)\n");
|
||||
} else {
|
||||
println!("(To exit, press Ctrl+D or type .exit)\n");
|
||||
}
|
||||
already_ctrlc = true;
|
||||
println!("(To exit, press Ctrl+C again or Ctrl+D or type .exit)\n");
|
||||
}
|
||||
Ok(Signal::CtrlD) => {
|
||||
self.abort.set_ctrld();
|
||||
|
Loading…
Reference in New Issue
Block a user