repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: 17bef7d783bdf178b58166786a9587382b80c07c: path_to: revision_to:
commit 17bef7d783bdf178b58166786a9587382b80c07c Author: Marc LehmannDate: Sat Jan 20 00:51:31 2007 +0000 remove non-POSIX termios support diff --git a/src/init.C b/src/init.C
--- a/src/init.C +++ b/src/init.C @@ -1280,7 +1280,7 @@ rxvt_term::run_command (const char *const *argv) rxvt_get_ttymode (&tio, er); pty->set_utf8_mode (enc_utf8); - SET_TTYMODE (pty->tty, &tio); /* init terminal attributes */ + SET_TERMIOS (pty->tty, &tio); /* init terminal attributes */ /* set initial window size */ tt_winch (); diff --git a/src/init.h b/src/init.h
--- a/src/init.h +++ b/src/init.h @@ -20,26 +20,11 @@ /* ways to deal with getting/setting termios structure */ /* termios interface */ -# ifdef TCSANOW /* POSIX */ -# define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) -# define SET_TERMIOS(fd,tios) \ - cfsetospeed (tios, BAUDRATE), \ - cfsetispeed (tios, BAUDRATE), \ - tcsetattr (fd, TCSANOW, tios) -# else -# ifdef TIOCSETA -# define GET_TERMIOS(fd,tios) ioctl (fd, TIOCGETA, tios) -# define SET_TERMIOS(fd,tios) \ - tios->c_cflag |= BAUDRATE, \ - ioctl (fd, TIOCSETA, tios) -# else -# define GET_TERMIOS(fd,tios) ioctl (fd, TCGETS, tios) -# define SET_TERMIOS(fd,tios) \ - tios->c_cflag |= BAUDRATE, \ - ioctl (fd, TCSETS, tios) -# endif -# endif -# define SET_TTYMODE(fd,tios) SET_TERMIOS (fd, tios) +#define GET_TERMIOS(fd,tios) tcgetattr (fd, tios) +#define SET_TERMIOS(fd,tios) \ + cfsetospeed (tios, BAUDRATE), \ + cfsetispeed (tios, BAUDRATE), \ + tcsetattr (fd, TCSANOW, tios) /* use the fastest baud-rate */ #ifdef B38400
-----END OF PAGE-----