From ce69801e80f24fe667a6b979507bb7ab0ffc4471 Mon Sep 17 00:00:00 2001 From: Ken Arnold Date: Tue, 27 Jan 1981 01:03:16 -0800 Subject: [PATCH] date and time created 81/01/26 17:03:16 by arnold SCCS-vsn: lib/libcurses/touchwin.c 1.1 --- usr/src/lib/libcurses/touchwin.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 usr/src/lib/libcurses/touchwin.c diff --git a/usr/src/lib/libcurses/touchwin.c b/usr/src/lib/libcurses/touchwin.c new file mode 100644 index 0000000000..c0c12bcdd9 --- /dev/null +++ b/usr/src/lib/libcurses/touchwin.c @@ -0,0 +1,19 @@ +# include "curses.ext" + +/* + * make it look like the whole window has been changed. + * + * %G% (Berkeley) @(#)touchwin.c 1.1 + */ +touchwin(win) +reg WINDOW *win; +{ + reg int y, maxy, maxx; + + maxy = win->_maxy; + maxx = win->_maxx - 1; + for (y = 0; y < maxy; y++) { + win->_firstch[y] = 0; + win->_lastch[y] = maxx; + } +} -- 2.20.1