* grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
usage of wrong table which resulted in mishandling of 4-byte sequences.
This commit is contained in:
parent
2237daf246
commit
e84f818865
2 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,10 @@
|
||||||
2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* 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 <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/term/terminfo.c: Add Home and End key sequences.
|
* grub-core/term/terminfo.c: Add Home and End key sequences.
|
||||||
|
|
||||||
|
|
|
@ -561,7 +561,7 @@ grub_terminfo_readkey (struct grub_term_input *term, int *keys, int *len,
|
||||||
CONTINUE_READ;
|
CONTINUE_READ;
|
||||||
if (c != '~')
|
if (c != '~')
|
||||||
return;
|
return;
|
||||||
keys[0] = three_code_table[i].ascii;
|
keys[0] = four_code_table[i].ascii;
|
||||||
*len = 1;
|
*len = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue