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
|
@ -103,7 +103,7 @@ cmdline_cat_test (void)
|
|||
'/', 't', 'e', 's', 't', '.',
|
||||
't', 'x', 't', '\n',
|
||||
GRUB_TERM_NO_KEY,
|
||||
GRUB_TERM_NO_KEY, '\e'},
|
||||
GRUB_TERM_NO_KEY, GRUB_TERM_ESC},
|
||||
23);
|
||||
|
||||
grub_video_checksum ("cmdline_cat");
|
||||
|
|
|
@ -146,7 +146,7 @@ gfxterm_menu (void)
|
|||
return;
|
||||
}
|
||||
grub_terminal_input_fake_sequence ((int []) { -1, -1, -1, GRUB_TERM_KEY_DOWN, -1, 'e',
|
||||
-1, GRUB_TERM_KEY_RIGHT, -1, 'x', -1, '\e', -1, '\e' }, 14);
|
||||
-1, GRUB_TERM_KEY_RIGHT, -1, 'x', -1, GRUB_TERM_ESC, -1, GRUB_TERM_ESC }, 14);
|
||||
|
||||
grub_video_checksum (tests[j].name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue