mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
CTRL.
This commit is contained in:
1 parent
18a38098ad
commit
488f71f116
2 files changed
+7
No files matched your search
@@ -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>
|
2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
The E820 type 5 is BADRAM, not EXEC_CODE.
|
The E820 type 5 is BADRAM, not EXEC_CODE.
|
||||||
|
|||||||
@@ -403,6 +403,8 @@ grub_terminfo_readkey (struct grub_term_input *term, int *keys, int *len,
|
|||||||
/* Backspace: Ctrl-h. */
|
/* Backspace: Ctrl-h. */
|
||||||
if (c == 0x7f)
|
if (c == 0x7f)
|
||||||
c = '\b';
|
c = '\b';
|
||||||
|
if (c < 0x20 && c != '\t' && c!= '\b' && c != '\n' && c != '\r')
|
||||||
|
c = GRUB_TERM_CTRL | (c - 1 + 'a');
|
||||||
*len = 1;
|
*len = 1;
|
||||||
keys[0] = c;
|
keys[0] = c;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user