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

Annotation of /lbbs/include/io.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations)
Fri May 9 11:21:11 2025 UTC (10 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.14: +0 -2 lines
Content type: text/x-chdr
Refact signal handler and processing implementation
Refine select error handling

1 sysadm 1.1 /***************************************************************************
2 sysadm 1.11 io.h - description
3     -------------------
4 sysadm 1.14 Copyright : (C) 2004-2025 by Leaflet
5     Email : leaflet@leafok.com
6 sysadm 1.1 ***************************************************************************/
7    
8     /***************************************************************************
9     * *
10     * This program is free software; you can redistribute it and/or modify *
11     * it under the terms of the GNU General Public License as published by *
12 sysadm 1.14 * the Free Software Foundation; either version 3 of the License, or *
13 sysadm 1.1 * (at your option) any later version. *
14     * *
15     ***************************************************************************/
16    
17 sysadm 1.9 #ifndef _IO_H_
18     #define _IO_H_
19    
20 sysadm 1.1 #include <stdio.h>
21    
22 sysadm 1.11 #define ESC_KEY '\033'
23     #define CR '\r'
24     #define LF '\n'
25     #define BACKSPACE '\b'
26     #define BELL '\b'
27     #define KEY_SPACE '\040'
28 sysadm 1.7
29     #ifndef EXTEND_KEY
30     #define EXTEND_KEY
31 sysadm 1.11 #define KEY_NULL 0xffff
32     #define KEY_TIMEOUT 0xfffe
33     #define KEY_CONTROL 0xff
34     #define KEY_TAB 9
35     #define KEY_ESC 27
36     #define KEY_UP 0x0101
37     #define KEY_DOWN 0x0102
38     #define KEY_RIGHT 0x0103
39     #define KEY_LEFT 0x0104
40     #define KEY_HOME 0x0201
41     #define KEY_INS 0x0202
42     #define KEY_DEL 0x0203
43     #define KEY_END 0x0204
44     #define KEY_PGUP 0x0205
45     #define KEY_PGDN 0x0206
46     #define KEY_F1 0x0207
47     #define KEY_F2 0x0208
48     #define KEY_F3 0x0209
49     #define KEY_F4 0x020a
50     #define KEY_F5 0x020b
51     #define KEY_F6 0x020c
52     #define KEY_F7 0x020d
53     #define KEY_F8 0x020e
54     #define KEY_F9 0x020f
55     #define KEY_F10 0x0210
56 sysadm 1.7 #endif
57 sysadm 1.3
58 sysadm 1.11 #define Ctrl(C) ((C) - 'A' + 1)
59 sysadm 1.2
60 sysadm 1.11 #define DOECHO (1)
61     #define NOECHO (0)
62 sysadm 1.10
63 sysadm 1.12 extern int outc(char c);
64    
65     extern int prints(const char *format, ...);
66    
67     extern int iflush();
68    
69 sysadm 1.13 extern int igetch(int clear_buf);
70 sysadm 1.12
71     extern int igetch_t(long int sec);
72    
73 sysadm 1.9 #endif //_IO_H_

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