]> asedeno.scripts.mit.edu Git - 1ts-debian.git/commitdiff
don't define PC or ospeed; curses will get angry
authorkcr <kcr@cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f>
Tue, 3 Jul 2001 18:40:28 +0000 (18:40 +0000)
committerkcr <kcr@cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f>
Tue, 3 Jul 2001 18:40:28 +0000 (18:40 +0000)
git-svn-id: svn://svn.1ts.org/debian/trunk/zephyr@89 cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f

zwgc/tty_filter.c

index f90c143576e9f988b0d4c9695ce540879ba75199..ed81b701d28a6b38f589e01a1fa7834ad1e66708 100644 (file)
@@ -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);