* grub-core/term/terminfo.c: Add Home and End key sequences.
This commit is contained in:
parent
d72bff0997
commit
2237daf246
2 changed files with 23 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/term/terminfo.c: Add Home and End key sequences.
|
||||
|
||||
2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/video/readers/png.c (grub_png_decode_image_header):
|
||||
|
|
|
@ -487,6 +487,25 @@ grub_terminfo_readkey (struct grub_term_input *term, int *keys, int *len,
|
|||
{
|
||||
CONTINUE_READ;
|
||||
|
||||
if (c == 'O')
|
||||
{
|
||||
CONTINUE_READ;
|
||||
|
||||
switch (c)
|
||||
{
|
||||
case 'H':
|
||||
keys[0] = GRUB_TERM_KEY_HOME;
|
||||
*len = 1;
|
||||
return;
|
||||
case 'F':
|
||||
keys[0] = GRUB_TERM_KEY_END;
|
||||
*len = 1;
|
||||
return;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (c != '[')
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue