repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 17bef7d783bdf178b58166786a9587382b80c07c:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 17bef7d783bdf178b58166786a9587382b80c07c
Author: Marc Lehmann 
Date:   Sat Jan 20 00:51:31 2007 +0000

    remove non-POSIX termios support

diff --git a/src/init.C b/src/init.C
index f65d14a33b267fcebdafda1e3525e06c70d34adc..
index ..7d1bbbccb88c4061b176bc1a83fe9f7568ef9eed 100644
--- 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
index 745d853e01f042a8462f1a59e80403ad0a9cdaed..
index ..474c36ebd28ef6a1f4ad0ed2ac8af71f06e2f8f3 100644
--- 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-----