From e96b045f0c9576f118c340fc533bb3cff396117d Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 2 Jan 2014 15:52:49 -0500 Subject: [PATCH] Remove baudrate-handing code. --- sbr/terminal.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sbr/terminal.c b/sbr/terminal.c index 4b29cace..82051e94 100644 --- a/sbr/terminal.c +++ b/sbr/terminal.c @@ -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); -- 2.56.0