core: use GRUB_TERM_ definitions when handling term characters
* Also use hex value for GRUB_TERM_ESC as '\e' is not in the C standard and is not understood by some compilers
This commit is contained in:
parent
f826330683
commit
bdd89d239c
13 changed files with 25 additions and 24 deletions
|
@ -1403,7 +1403,7 @@ grub_menu_entry_run (grub_menu_entry_t entry)
|
|||
goto fail;
|
||||
break;
|
||||
|
||||
case '\e':
|
||||
case GRUB_TERM_ESC:
|
||||
destroy_screen (screen);
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue