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
5f294d3b9e
commit
5ba09fb415
13 changed files with 25 additions and 24 deletions
|
@ -763,7 +763,7 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot)
|
|||
*auto_boot = 0;
|
||||
return current_entry;
|
||||
|
||||
case '\e':
|
||||
case GRUB_TERM_ESC:
|
||||
if (nested)
|
||||
{
|
||||
menu_fini ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue