kernel: add KEY_COPYRIGHT and KEY_EDIT
authorAlan Cox <alan@linux.intel.com>
Sat, 18 Aug 2018 21:57:03 +0000 (22:57 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 18 Aug 2018 21:57:03 +0000 (22:57 +0100)
Kernel/include/keycode.h
Kernel/vt.c

index 47ac362..aadd637 100644 (file)
@@ -40,6 +40,7 @@
 #define KEY_PAUSE      ESC('p')
 #define KEY_PGDOWN     ESC('>')
 #define KEY_PGUP       ESC('<')
+#define KEY_EDIT       ESC('E')
 
 #define KEY_F1         ESC('1')
 #define KEY_F2         ESC('2')
@@ -62,6 +63,7 @@
 #define KEY_EURO       0x82
 #define KEY_DOT                0x83
 #define KEY_YEN                0x84
+#define KEY_COPYRIGHT  0x85
 
 #define KEY_CAPSLOCK   0x9F    /* Never sent to the user, for internal tables */
 #endif
index 8d1eb0d..8f2a9fe 100644 (file)
@@ -345,6 +345,10 @@ int vt_inproc(uint8_t minor, unsigned char c)
                tty_inproc(minor, 0xC2);
                return tty_inproc(minor, 0xA5);
        }
+       if (c == KEY_COPYRIGHT) {
+               tty_inproc(minor,0xC2);
+               return tty_inproc(minor, 0xA9);
+       }
 #endif
        if (c > 0x9F) {
                tty_inproc(minor, KEY_ESC);