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,7 +511,8 @@ 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");
loop {
match get_char() { match get_char() {
's' | 'S' => { 's' | 'S' => {
run_shell(); run_shell();
@@ -519,7 +520,12 @@ fn run() -> Result<(), Error> {
'r' | 'R' => { 'r' | 'R' => {
reboot(); reboot();
} }
_ => (), 'q' | 'Q' => (),
_ => {
continue;
}
}
break;
} }
} }