1 | #ifndef INIT_H_ |
1 | #ifndef INIT_H_ |
2 | #define INIT_H_ |
2 | #define INIT_H_ |
3 | |
3 | |
4 | #undef CERASE /* TODO */ |
4 | #undef CERASE /* TODO */ |
5 | #define CERASE '\010' /* ^H */ |
5 | #define CERASE '\010' /* ^H */ |
6 | |
|
|
7 | #ifdef HAVE_XSETLOCALE |
|
|
8 | # define X_LOCALE |
|
|
9 | # include <X11/Xlocale.h> |
|
|
10 | #else |
|
|
11 | # ifdef HAVE_SETLOCALE |
|
|
12 | # include <clocale> |
|
|
13 | # endif |
|
|
14 | #endif |
|
|
15 | |
|
|
16 | #ifdef TTY_GID_SUPPORT |
|
|
17 | # include <grp.h> |
|
|
18 | #endif |
|
|
19 | |
6 | |
20 | /* ways to deal with getting/setting termios structure */ |
7 | /* ways to deal with getting/setting termios structure */ |
21 | |
8 | |
22 | /* termios interface */ |
9 | /* termios interface */ |
23 | #define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) |
10 | #define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) |
… | |
… | |
110 | # define ONLCR 0 |
97 | # define ONLCR 0 |
111 | #endif |
98 | #endif |
112 | |
99 | |
113 | #define CONSOLE "/dev/console" /* console device */ |
100 | #define CONSOLE "/dev/console" /* console device */ |
114 | |
101 | |
115 | #endif /* _INIT_H_ */ |
102 | #endif /* _INIT_H_ */ |