From 94661ad2d0b4a042d55c6e0e2cc4284ec216f0d9 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Wed, 15 Apr 2009 15:19:08 +0000 Subject: If you don't have termios, get a better computer. Nickels available. --- zwgc/tty_filter.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'zwgc') diff --git a/zwgc/tty_filter.c b/zwgc/tty_filter.c index 97905e3..81f2365 100644 --- a/zwgc/tty_filter.c +++ b/zwgc/tty_filter.c @@ -102,15 +102,9 @@ tty_filter_init(char *drivername, int ex; string_dictionary_binding *b; int isrealtty = string_Eq(drivername, "tty"); -#ifdef HAVE_TERMIOS_H struct termios tbuf; ospeed = (tcgetattr(STDIN_FILENO, &tbuf) == 0) ? cfgetospeed(&tbuf) : 2400; -#else - struct sgttyb sgttyb; - - ospeed = (ioctl(0, TIOCGETP, &sgttyb) == 0) ? sgttyb.sg_ospeed : 2400; -#endif if (termcap_dict == (string_dictionary) NULL) termcap_dict = string_dictionary_Create(7); -- cgit v1.2.3