From: kcr Date: Tue, 3 Jul 2001 18:40:28 +0000 (+0000) Subject: don't define PC or ospeed; curses will get angry X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ade861a23937b8dc794c0b7849f9d40ebcd97ec4;p=1ts-debian.git don't define PC or ospeed; curses will get angry git-svn-id: svn://svn.1ts.org/debian/trunk@89 cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f --- diff --git a/zephyr/zwgc/tty_filter.c b/zephyr/zwgc/tty_filter.c index f90c143..ed81b70 100644 --- a/zephyr/zwgc/tty_filter.c +++ b/zephyr/zwgc/tty_filter.c @@ -36,8 +36,10 @@ static const char rcsid_tty_filter_c[] = "$Id: tty_filter.c,v 1.18 1999/08/13 00 extern int tgetent(); extern char *tgetstr(),*getenv(); +#if 0 short ospeed; char PC; +#endif /* Dictionary naming convention: @@ -91,6 +93,7 @@ char **argv; int ex; string_dictionary_binding *b; int isrealtty = string_Eq(drivername, "tty"); +#if 0 #ifdef HAVE_TERMIOS_H struct termios tbuf; @@ -99,6 +102,7 @@ char **argv; struct sgttyb sgttyb; ospeed = (ioctl(0, TIOCGETP, &sgttyb) == 0) ? sgttyb.sg_ospeed : 2400; +#endif #endif if (termcap_dict == (string_dictionary) NULL) @@ -129,8 +133,10 @@ char **argv; /* We cheat here, and ignore the padding (if any) specified for the mode-change strings (it's a real pain to do "right") */ +#if 0 tmp = tgetstr("pc", &p); PC = (tmp) ? *tmp : 0; +#endif if (tmp = tgetstr("md",&p)) { /* bold ? */ EXPAND("B.bold"); tmp = tgetstr("me",&p);