]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/term/terminfo.c: Add Home and End key sequences.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 27 Sep 2013 22:55:38 +0000 (00:55 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 27 Sep 2013 22:55:38 +0000 (00:55 +0200)
ChangeLog
grub-core/term/terminfo.c

index 15c98121d3af6f73ae6b11d80dda729cb119eb43..2b1be2c18fe5ab90ad81d730ab8aa89c52070cfc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index bdb0e6618332bbf7640eb73ff44e9c2fcb36739f..f684ff8dc51f545a542c0ee4cd9191b27884e55d 100644 (file)
@@ -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;
       }