/[LeafOK_CVS]/lbbs/include/io.h
ViewVC logotype

Diff of /lbbs/include/io.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.19 by sysadm, Tue May 20 05:11:05 2025 UTC Revision 1.21 by sysadm, Mon Jun 9 15:39:05 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
# Line 84  Line 84 
84  #define KEY_CTRL_F11 0x0229  #define KEY_CTRL_F11 0x0229
85  #define KEY_CTRL_F12 0x022a  #define KEY_CTRL_F12 0x022a
86    
87    #define KEY_CTRL_UP 0x0230
88    #define KEY_CTRL_DOWN 0x0231
89    #define KEY_CTRL_RIGHT 0x0232
90    #define KEY_CTRL_LEFT 0x0233
91    #define KEY_CTRL_HOME 0x0234
92    #define KEY_CTRL_END 0x0235
93    
94  #endif // EXPAND_KEY  #endif // EXPAND_KEY
95    
96  #define Ctrl(C) ((C) - 'A' + 1)  #define Ctrl(C) ((C) - 'A' + 1)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1