From 16dfdf20bdcc4cb009c3623a86f4b039ffb7e468 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 8 Jun 2005 12:13:44 +0000 Subject: New VT100/220 Escape Sequence Parser, supporting F1~F12 and S-TAB. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2805 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index 5a29ca70..efc68352 100644 --- a/include/common.h +++ b/include/common.h @@ -135,12 +135,25 @@ ANSI_COLOR(34;46) " #define KEY_DOWN 0x0102 #define KEY_RIGHT 0x0103 #define KEY_LEFT 0x0104 +#define KEY_STAB 0x0105 /* shift-tab */ #define KEY_HOME 0x0201 #define KEY_INS 0x0202 #define KEY_DEL 0x0203 #define KEY_END 0x0204 #define KEY_PGUP 0x0205 #define KEY_PGDN 0x0206 +#define KEY_F1 0x0301 +#define KEY_F2 0x0302 +#define KEY_F3 0x0303 +#define KEY_F4 0x0304 +#define KEY_F5 0x0305 +#define KEY_F6 0x0306 +#define KEY_F7 0x0307 +#define KEY_F8 0x0308 +#define KEY_F9 0x0309 +#define KEY_F10 0x030A +#define KEY_F11 0x030B +#define KEY_F12 0x030C #define QCAST int (*)(const void *, const void *) #define Ctrl(c) (c & 037) -- cgit v1.2.3