Use Q for quitting instead of any key

This commit is contained in:
Roey Darwish Dror
2019-08-04 09:25:35 +03:00
parent 15510b7280
commit 0993e3845d

View File

@@ -511,15 +511,21 @@ fn run() -> Result<(), Error> {
} }
if config.keep_at_end() { 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");
match get_char() { loop {
's' | 'S' => { match get_char() {
run_shell(); 's' | 'S' => {
run_shell();
}
'r' | 'R' => {
reboot();
}
'q' | 'Q' => (),
_ => {
continue;
}
} }
'r' | 'R' => { break;
reboot();
}
_ => (),
} }
} }