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.11 by root, Sat Jan 20 00:45:30 2007 UTC vs.
Revision 1.14 by ayin, Thu Oct 18 09:11:43 2007 UTC

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 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 /* HAVE_XLOCALE */
15
16#ifdef TTY_GID_SUPPORT
17# include <grp.h>
18#endif
19
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# ifdef TCSANOW /* POSIX */
24# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) 10#define GET_TERMIOS(fd,tios) tcgetattr (fd, tios)
25# define SET_TERMIOS(fd,tios) \ 11#define SET_TERMIOS(fd,tios) \
26 cfsetospeed (tios, BAUDRATE), \ 12 cfsetospeed (tios, BAUDRATE), \
27 cfsetispeed (tios, BAUDRATE), \ 13 cfsetispeed (tios, BAUDRATE), \
28 tcsetattr (fd, TCSANOW, tios) 14 tcsetattr (fd, TCSANOW, tios)
29# else
30# ifdef TIOCSETA
31# define GET_TERMIOS(fd,tios) ioctl (fd, TIOCGETA, tios)
32# define SET_TERMIOS(fd,tios) \
33 tios->c_cflag |= BAUDRATE, \
34 ioctl (fd, TIOCSETA, tios)
35# else
36# define GET_TERMIOS(fd,tios) ioctl (fd, TCGETS, tios)
37# define SET_TERMIOS(fd,tios) \
38 tios->c_cflag |= BAUDRATE, \
39 ioctl (fd, TCSETS, tios)
40# endif
41# endif
42# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios)
43 15
44/* use the fastest baud-rate */ 16/* use the fastest baud-rate */
45#ifdef B38400 17#ifdef B38400
46# define BAUDRATE B38400 18# define BAUDRATE B38400
47#else 19#else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines