ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.h
Revision: 1.20
Committed: Wed Dec 21 11:13:43 2011 UTC (12 years, 5 months ago) by sf-exg
Content type: text/plain
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_29, rxvt-unicode-rel-9_26, rxvt-unicode-rel-9_25, rxvt-unicode-rel-9_22, rxvt-unicode-rel-9_20, rxvt-unicode-rel-9_21, rel-9_14, rxvt-unicode-rel-9_19, rxvt-unicode-rel-9_18, rxvt-unicode-rel-9_17, rxvt-unicode-rel-9_16, rxvt-unicode-rel-9_15, rxvt-unicode-rel-9_30, HEAD
Changes since 1.19: +1 -1 lines
Log Message:
Use the correct macro to detect linux.

File Contents

# User Rev Content
1 pcg 1.4 #ifndef INIT_H_
2     #define INIT_H_
3 pcg 1.1
4     /* use the fastest baud-rate */
5 root 1.18 //#if defined(B4000000)
6     //# define BAUDRATE B4000000
7     //#elif defined(B921600)
8     //# define BAUDRATE B921600
9     //#elif defined(B115200)
10     //# define BAUDRATE B115200
11     //#elif defined(B38400)
12     #if defined(B38400)
13 pcg 1.1 # define BAUDRATE B38400
14 root 1.17 #elif defined(B19200)
15     # define BAUDRATE B19200
16 pcg 1.1 #else
17 root 1.17 # define BAUDRATE B9600
18 pcg 1.1 #endif
19    
20     /* Disable special character functions */
21     #ifdef _POSIX_VDISABLE
22     # define VDISABLE _POSIX_VDISABLE
23     #else
24     # define VDISABLE 255
25     #endif
26    
27     /*----------------------------------------------------------------------*
28     * system default characters if defined and reasonable
29     */
30     #ifndef CINTR
31     # define CINTR '\003' /* ^C */
32     #endif
33     #ifndef CQUIT
34     # define CQUIT '\034' /* ^\ */
35     #endif
36     #ifndef CERASE
37 sf-exg 1.20 # ifdef __linux__
38 pcg 1.1 # define CERASE '\177' /* ^? */
39     # else
40     # define CERASE '\010' /* ^H */
41     # endif
42     #endif
43     #ifndef CKILL
44     # define CKILL '\025' /* ^U */
45     #endif
46     #ifndef CEOF
47     # define CEOF '\004' /* ^D */
48     #endif
49     #ifndef CSTART
50     # define CSTART '\021' /* ^Q */
51     #endif
52     #ifndef CSTOP
53     # define CSTOP '\023' /* ^S */
54     #endif
55     #ifndef CSUSP
56     # define CSUSP '\032' /* ^Z */
57     #endif
58     #ifndef CDSUSP
59     # define CDSUSP '\031' /* ^Y */
60     #endif
61     #ifndef CRPRNT
62     # define CRPRNT '\022' /* ^R */
63     #endif
64     #ifndef CFLUSH
65     # define CFLUSH '\017' /* ^O */
66     #endif
67     #ifndef CWERASE
68     # define CWERASE '\027' /* ^W */
69     #endif
70     #ifndef CLNEXT
71     # define CLNEXT '\026' /* ^V */
72     #endif
73    
74     #ifndef VDISCRD
75     # ifdef VDISCARD
76     # define VDISCRD VDISCARD
77     # endif
78     #endif
79    
80     #ifndef VWERSE
81     # ifdef VWERASE
82     # define VWERSE VWERASE
83     # endif
84     #endif
85    
86     #ifndef ONLCR
87 root 1.9 # define ONLCR 0
88 pcg 1.1 #endif
89    
90     #define CONSOLE "/dev/console" /* console device */
91    
92 ayin 1.15 #endif /* _INIT_H_ */