From 56e4caf6767790745ef3d60d01bb8d6009bde4f1 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 4 Aug 1995 07:17:24 +0000 Subject: Add missing ospeed initialization --- usr.sbin/watch/watch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.sbin/watch') diff --git a/usr.sbin/watch/watch.c b/usr.sbin/watch/watch.c index 6691067..6aebc99 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(); } -- cgit v1.1