summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-04-15 15:19:08 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-04-15 15:19:08 +0000
commit94661ad2d0b4a042d55c6e0e2cc4284ec216f0d9 (patch)
tree6263fe058357a2dae2783ad49d527cd12091509b /zwgc
parentbe41eecada4799e5599dd8030778711eb2c16a52 (diff)
If you don't have termios, get a better computer. Nickels available.
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/tty_filter.c6
1 files changed, 0 insertions, 6 deletions
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);