remove non-POSIX termios support
authorroot <root>
Sat, 20 Jan 2007 00:51:31 +0000 (00:51 +0000)
committerroot <root>
Sat, 20 Jan 2007 00:51:31 +0000 (00:51 +0000)
Changes
src/init.C
src/init.h

diff --git a/Changes b/Changes
index 68ac3ba8c8f0d14988f1a743f479df18b8f55c18..052d22d3ba4f8dd6d84e072bc173f9d0a1d269c2 100644 (file)
--- a/Changes
+++ b/Changes
@@ -42,6 +42,7 @@ TODO: fix rounding of colors when !xft (#aaaaaa => #a9a900) (do not use correct,
           set so its value does not get lost (reported and analysed by Andrei
           Paskevich).
         - rip out support for obsolete sgtty.h interface.
+        - rip out support for non-POSIX termios variants.
 
 8.1  Thu Dec  7 22:27:25 CET 2006
         - ケリスマスプレゼント - zomg!!1, it's too early!!!
index f65d14a33b267fcebdafda1e3525e06c70d34adc..7d1bbbccb88c4061b176bc1a83fe9f7568ef9eed 100644 (file)
@@ -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 ();
index 745d853e01f042a8462f1a59e80403ad0a9cdaed..474c36ebd28ef6a1f4ad0ed2ac8af71f06e2f8f3 100644 (file)
 /* 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