diff options
Diffstat (limited to 'mbbsd/term.c')
-rw-r--r-- | mbbsd/term.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mbbsd/term.c b/mbbsd/term.c index 9d766fe4..2b674340 100644 --- a/mbbsd/term.c +++ b/mbbsd/term.c @@ -9,14 +9,14 @@ int tputs(const char *str, int affcnt, int (*putc) (int)); char *tparm(const char *str,...); char *tgoto(const char *cap, int col, int row); -static struct termios tty_state, tty_new; - /* ----------------------------------------------------- */ /* basic tty control */ /* ----------------------------------------------------- */ void init_tty() { + struct termios tty_state, tty_new; + if (tcgetattr(1, &tty_state) < 0) { syslog(LOG_ERR, "tcgetattr(): %m"); return; @@ -92,8 +92,6 @@ term_init() return YEA; } -char term_buf[32]; - void do_move(int destcol, int destline) { |