diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index 6691067820a1..6aebc999e1f7 100644 --- a/usr.sbin/watch/watch.c +++ b/usr.sbin/watch/watch.c @@ -18,13 +18,13 @@ #include #include #include +#include +#include #include #include #include #include #include -#include -#include #include @@ -92,6 +92,7 @@ set_tty() sgn = sgo; sgn.sg_flags |= CBREAK; sgn.sg_flags &= ~ECHO; + ospeed = sgo.sg_ospeed; ioctl(std_in, TIOCSETP, &sgn); } @@ -162,8 +163,8 @@ setup_scr() if (tgetent(tbuf, term) == 1) if (tgetstr("cl", &cbuf)) clear_ok = 1; - clear(); set_tty(); + clear(); }