ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.h
Revision: 1.15
Committed: Thu Nov 15 11:36:15 2007 UTC (16 years, 6 months ago) by ayin
Content type: text/plain
Branch: MAIN
CVS Tags: rel-8_5a, rel-8_8, rel-8_6, rel-8_7
Changes since 1.14: +1 -1 lines
Log Message:
Cosmetics.

File Contents

# Content
1 #ifndef INIT_H_
2 #define INIT_H_
3
4 #undef CERASE /* TODO */
5 #define CERASE '\010' /* ^H */
6
7 /* ways to deal with getting/setting termios structure */
8
9 /* termios interface */
10 #define GET_TERMIOS(fd,tios) tcgetattr (fd, tios)
11 #define SET_TERMIOS(fd,tios) \
12 cfsetospeed (tios, BAUDRATE), \
13 cfsetispeed (tios, BAUDRATE), \
14 tcsetattr (fd, TCSANOW, tios)
15
16 /* use the fastest baud-rate */
17 #ifdef B38400
18 # define BAUDRATE B38400
19 #else
20 # ifdef B19200
21 # define BAUDRATE B19200
22 # else
23 # define BAUDRATE B9600
24 # endif
25 #endif
26
27 /* Disable special character functions */
28 #ifdef _POSIX_VDISABLE
29 # define VDISABLE _POSIX_VDISABLE
30 #else
31 # define VDISABLE 255
32 #endif
33
34 /*----------------------------------------------------------------------*
35 * system default characters if defined and reasonable
36 */
37 #ifndef CINTR
38 # define CINTR '\003' /* ^C */
39 #endif
40 #ifndef CQUIT
41 # define CQUIT '\034' /* ^\ */
42 #endif
43 #ifndef CERASE
44 # ifdef linux
45 # define CERASE '\177' /* ^? */
46 # else
47 # define CERASE '\010' /* ^H */
48 # endif
49 #endif
50 #ifndef CKILL
51 # define CKILL '\025' /* ^U */
52 #endif
53 #ifndef CEOF
54 # define CEOF '\004' /* ^D */
55 #endif
56 #ifndef CSTART
57 # define CSTART '\021' /* ^Q */
58 #endif
59 #ifndef CSTOP
60 # define CSTOP '\023' /* ^S */
61 #endif
62 #ifndef CSUSP
63 # define CSUSP '\032' /* ^Z */
64 #endif
65 #ifndef CDSUSP
66 # define CDSUSP '\031' /* ^Y */
67 #endif
68 #ifndef CRPRNT
69 # define CRPRNT '\022' /* ^R */
70 #endif
71 #ifndef CFLUSH
72 # define CFLUSH '\017' /* ^O */
73 #endif
74 #ifndef CWERASE
75 # define CWERASE '\027' /* ^W */
76 #endif
77 #ifndef CLNEXT
78 # define CLNEXT '\026' /* ^V */
79 #endif
80
81 #ifndef VDISCRD
82 # ifdef VDISCARD
83 # define VDISCRD VDISCARD
84 # endif
85 #endif
86
87 #ifndef VWERSE
88 # ifdef VWERASE
89 # define VWERSE VWERASE
90 # endif
91 #endif
92
93 #ifndef O_NOCTTY
94 # define O_NOCTTY 0
95 #endif
96 #ifndef ONLCR
97 # define ONLCR 0
98 #endif
99
100 #define CONSOLE "/dev/console" /* console device */
101
102 #endif /* _INIT_H_ */