/*
* 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
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 */
#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