Use Q for quitting instead of any key
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -511,7 +511,8 @@ fn run() -> Result<(), Error> {
|
||||
}
|
||||
|
||||
if config.keep_at_end() {
|
||||
print_info("\n(R)eboot\n(S)hell\n\nPress any other key to continue");
|
||||
print_info("\n(R)eboot\n(S)hell\n(Q)uit");
|
||||
loop {
|
||||
match get_char() {
|
||||
's' | 'S' => {
|
||||
run_shell();
|
||||
@@ -519,7 +520,12 @@ fn run() -> Result<(), Error> {
|
||||
'r' | 'R' => {
|
||||
reboot();
|
||||
}
|
||||
_ => (),
|
||||
'q' | 'Q' => (),
|
||||
_ => {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user