Parent Directory
|
Revision Log
|
Patch
| Revision 1.1 by sysadm, Fri Oct 22 15:21:28 2004 UTC | Revision 1.10 by sysadm, Fri May 6 16:37:59 2005 UTC | |
|---|---|---|
| # | Line 15 | Line 15 |
| 15 | * * | * * |
| 16 | ***************************************************************************/ | ***************************************************************************/ |
| 17 | ||
| 18 | #ifndef _IO_H_ | |
| 19 | #define _IO_H_ | |
| 20 | ||
| 21 | #include <stdio.h> | #include <stdio.h> |
| 22 | ||
| 23 | #define ESC_KEY '\033' | #define ESC_KEY '\033' |
| # | Line 22 | Line 25 |
| 25 | #define LF '\n' | #define LF '\n' |
| 26 | #define BACKSPACE '\b' | #define BACKSPACE '\b' |
| 27 | #define BELL '\b' | #define BELL '\b' |
| 28 | #define KEY_UP 0x101 | #define KEY_SPACE '\040' |
| 29 | #define KEY_DOWN 0x102 | |
| 30 | #define KEY_LEFT 0x103 | #ifndef EXTEND_KEY |
| 31 | #define KEY_RIGHT 0x104 | #define EXTEND_KEY |
| 32 | #define KEY_NULL 0xffff | |
| 33 | #define KEY_TIMEOUT 0xfffe | |
| 34 | #define KEY_CONTROL 0xff | |
| 35 | #define KEY_TAB 9 | |
| 36 | #define KEY_ESC 27 | |
| 37 | #define KEY_UP 0x0101 | |
| 38 | #define KEY_DOWN 0x0102 | |
| 39 | #define KEY_RIGHT 0x0103 | |
| 40 | #define KEY_LEFT 0x0104 | |
| 41 | #define KEY_HOME 0x0201 | |
| 42 | #define KEY_INS 0x0202 | |
| 43 | #define KEY_DEL 0x0203 | |
| 44 | #define KEY_END 0x0204 | |
| 45 | #define KEY_PGUP 0x0205 | |
| 46 | #define KEY_PGDN 0x0206 | |
| 47 | #define KEY_F1 0x0207 | |
| 48 | #define KEY_F2 0x0208 | |
| 49 | #define KEY_F3 0x0209 | |
| 50 | #define KEY_F4 0x020a | |
| 51 | #define KEY_F5 0x020b | |
| 52 | #define KEY_F6 0x020c | |
| 53 | #define KEY_F7 0x020d | |
| 54 | #define KEY_F8 0x020e | |
| 55 | #define KEY_F9 0x020f | |
| 56 | #define KEY_F10 0x0210 | |
| 57 | #endif | |
| 58 | ||
| 59 | #define Ctrl(C) ((C) - 'A' + 1) | |
| 60 | ||
| 61 | #define DOECHO (1) | |
| 62 | #define NOECHO (0) | |
| 63 | ||
| 64 | extern int screen_lines; | |
| 65 | ||
| 66 | #endif //_IO_H_ |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |