ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.h
(Generate patch)

Comparing rxvt-unicode/src/init.h (file contents):
Revision 1.14 by ayin, Thu Oct 18 09:11:43 2007 UTC vs.
Revision 1.17 by root, Tue Jun 15 11:07:16 2010 UTC

1#ifndef INIT_H_ 1#ifndef INIT_H_
2#define INIT_H_ 2#define INIT_H_
3 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 */ 4/* use the fastest baud-rate */
17#ifdef B38400 5#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)
18# define BAUDRATE B38400 12# define BAUDRATE B38400
13#elif defined(B19200)
14# define BAUDRATE B19200
19#else 15#else
20# ifdef B19200
21# define BAUDRATE B19200
22# else
23# define BAUDRATE B9600 16# define BAUDRATE B9600
24# endif
25#endif 17#endif
26 18
27/* Disable special character functions */ 19/* Disable special character functions */
28#ifdef _POSIX_VDISABLE 20#ifdef _POSIX_VDISABLE
29# define VDISABLE _POSIX_VDISABLE 21# define VDISABLE _POSIX_VDISABLE
97# define ONLCR 0 89# define ONLCR 0
98#endif 90#endif
99 91
100#define CONSOLE "/dev/console" /* console device */ 92#define CONSOLE "/dev/console" /* console device */
101 93
102#endif /* _INIT_H_ */ 94#endif /* _INIT_H_ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines