]> diplodocus.org Git - nmh/commitdiff
Remove baudrate-handing code.
authorKen Hornstein <kenh@pobox.com>
Thu, 2 Jan 2014 20:52:49 +0000 (15:52 -0500)
committerKen Hornstein <kenh@pobox.com>
Thu, 2 Jan 2014 20:52:49 +0000 (15:52 -0500)
sbr/terminal.c

index 4b29cac..82051e9 100644 (file)
@@ -39,8 +39,6 @@
 # define TXTSIZ BUFSIZ
 #endif
 
-static long speedcode;
-
 static int initLI = 0;
 static int initCO = 0;
 
@@ -63,7 +61,6 @@ read_termcap(void)
     char termbuf[TXTSIZ];
 #endif
 
-    struct termios tio;
     static int inited = 0;
 
     if (inited++)
@@ -83,8 +80,6 @@ read_termcap(void)
        return;
 #endif
 
-    speedcode = cfgetospeed(&tio);
-
     if (!initCO && (CO = tgetnum ("co")) <= 0)
        CO = 80;
     if (!initLI && (LI = tgetnum ("li")) <= 0)
@@ -147,12 +142,10 @@ clear_screen (void)
 {
     read_termcap ();
 
-    if (CL && speedcode)
+    if (CL)
        tputs (CL, LI, outc);
     else {
        printf ("\f");
-       if (speedcode)
-           printf ("\200");
     }
 
     fflush (stdout);