From: Alan Cox Date: Sat, 18 Aug 2018 21:57:03 +0000 (+0100) Subject: kernel: add KEY_COPYRIGHT and KEY_EDIT X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=518cce5ce10820cb80031304012d4a717419ce9b;p=FUZIX.git kernel: add KEY_COPYRIGHT and KEY_EDIT --- diff --git a/Kernel/include/keycode.h b/Kernel/include/keycode.h index 47ac3621..aadd6372 100644 --- a/Kernel/include/keycode.h +++ b/Kernel/include/keycode.h @@ -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 diff --git a/Kernel/vt.c b/Kernel/vt.c index 8d1eb0db..8f2a9feb 100644 --- a/Kernel/vt.c +++ b/Kernel/vt.c @@ -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);