repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: a17e4f5317daf13e6e2260ad5dacede3d20955a1:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit a17e4f5317daf13e6e2260ad5dacede3d20955a1
Author: Emanuele Giaquinta 
Date:   Fri Dec 21 16:21:07 2007 +0000

    Remove {GET,SET}_TERMIOS macros.

diff --git a/src/init.C b/src/init.C
index e4bce8d4eed6462cf5920752d93f684441931fcf..
index ..e280a6c86d39f7ff1280663ff108064998298910 100644
--- a/src/init.C
+++ b/src/init.C
@@ -1148,7 +1148,7 @@ rxvt_get_ttymode (ttymode_t *tio, int erase)
   /*
    * standard System V termios interface
    */
-  if (GET_TERMIOS (STDIN_FILENO, tio) < 0)
+  if (tcgetattr (STDIN_FILENO, tio) < 0)
     {
       // return error - use system defaults,
       // where possible, and zero elsewhere
@@ -1341,7 +1341,10 @@ rxvt_term::run_command (const char *const *argv)
     er = -1;

   rxvt_get_ttymode (&tio, er);
-  SET_TERMIOS (pty->tty, &tio);       /* init terminal attributes */
+  /* init terminal attributes */
+  cfsetospeed (&tio, BAUDRATE);
+  cfsetispeed (&tio, BAUDRATE);
+  tcsetattr (pty->tty, TCSANOW, &tio);
   pty->set_utf8_mode (enc_utf8);

   /* set initial window size */
diff --git a/src/init.h b/src/init.h
index 413d98a509a41af11e6235f749e8de22b24a4a8d..
index ..a90dbd20f5d9f9921ac3ca1df3cef25c4196ef5d 100644
--- a/src/init.h
+++ b/src/init.h
@@ -4,15 +4,6 @@
 #undef CERASE /* TODO */
 #define CERASE	'\010'	/* ^H */

-/* ways to deal with getting/setting termios structure */
-
-/* termios interface */
-#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
 # define BAUDRATE	B38400

-----END OF PAGE-----