From e84f8188650709e55d4468f18d9a4106f6c80715 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 28 Sep 2013 01:03:31 +0200 Subject: [PATCH] * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix usage of wrong table which resulted in mishandling of 4-byte sequences. --- ChangeLog | 8 +++++++- grub-core/term/terminfo.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2b1be2c18..583e6319f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ -2013-09-27 Vladimir Serbinenko +2013-09-28 Vladimir Serbinenko + + * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix + usage of wrong table which resulted in mishandling of 4-byte + sequences. + +2013-09-28 Vladimir Serbinenko * grub-core/term/terminfo.c: Add Home and End key sequences. diff --git a/grub-core/term/terminfo.c b/grub-core/term/terminfo.c index f684ff8dc..e0146cbed 100644 --- a/grub-core/term/terminfo.c +++ b/grub-core/term/terminfo.c @@ -561,7 +561,7 @@ grub_terminfo_readkey (struct grub_term_input *term, int *keys, int *len, CONTINUE_READ; if (c != '~') return; - keys[0] = three_code_table[i].ascii; + keys[0] = four_code_table[i].ascii; *len = 1; return; }