* grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with

CTRL.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-01-05 01:25:01 +01:00
parent 18a38098ad
commit 488f71f116
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
CTRL.
2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
The E820 type 5 is BADRAM, not EXEC_CODE.

View file

@ -403,6 +403,8 @@ grub_terminfo_readkey (struct grub_term_input *term, int *keys, int *len,
/* Backspace: Ctrl-h. */
if (c == 0x7f)
c = '\b';
if (c < 0x20 && c != '\t' && c!= '\b' && c != '\n' && c != '\r')
c = GRUB_TERM_CTRL | (c - 1 + 'a');
*len = 1;
keys[0] = c;
return;