Parent Directory
|
Revision Log
|
Patch
| Revision 1.19 by sysadm, Tue May 20 05:11:05 2025 UTC | Revision 1.20 by sysadm, Wed May 28 11:14:58 2025 UTC | |
|---|---|---|
| # | Line 19 | Line 19 |
| 19 | ||
| 20 | #include <stdio.h> | #include <stdio.h> |
| 21 | ||
| #define ESC_KEY '\033' | ||
| 22 | #define CR '\r' | #define CR '\r' |
| 23 | #define LF '\n' | #define LF '\n' |
| 24 | #define BACKSPACE '\b' | #define BACKSPACE '\b' |
| 25 | #define BELL '\b' | #define BELL '\b' |
| 26 | #define KEY_TAB 9 | |
| 27 | #define KEY_ESC 27 | |
| 28 | #define KEY_SPACE '\040' | #define KEY_SPACE '\040' |
| 29 | ||
| 30 | #ifndef EXTEND_KEY | #ifndef EXTEND_KEY |
| # | Line 32 | Line 33 |
| 33 | #define KEY_NULL 0xffff | #define KEY_NULL 0xffff |
| 34 | #define KEY_TIMEOUT 0xfffe | #define KEY_TIMEOUT 0xfffe |
| 35 | #define KEY_CONTROL 0xff | #define KEY_CONTROL 0xff |
| #define KEY_TAB 9 | ||
| #define KEY_ESC 27 | ||
| 36 | #define KEY_UP 0x0101 | #define KEY_UP 0x0101 |
| 37 | #define KEY_DOWN 0x0102 | #define KEY_DOWN 0x0102 |
| 38 | #define KEY_RIGHT 0x0103 | #define KEY_RIGHT 0x0103 |
| 39 | #define KEY_LEFT 0x0104 | #define KEY_LEFT 0x0104 |
| 40 | #define KEY_CSI 0x011b // ESC ESC | |
| 41 | #define KEY_HOME 0x0201 | #define KEY_HOME 0x0201 |
| 42 | #define KEY_INS 0x0202 | #define KEY_INS 0x0202 |
| 43 | #define KEY_DEL 0x0203 | #define KEY_DEL 0x0203 |
|
||||||||
| webmaster@leafok.com | ViewVC Help |
| Powered by ViewVC 1.3.0-beta1 |