date and time created 81/01/26 17:03:16 by arnold
authorKen Arnold <arnold@ucbvax.Berkeley.EDU>
Tue, 27 Jan 1981 09:03:16 +0000 (01:03 -0800)
committerKen Arnold <arnold@ucbvax.Berkeley.EDU>
Tue, 27 Jan 1981 09:03:16 +0000 (01:03 -0800)
SCCS-vsn: lib/libcurses/touchwin.c 1.1

usr/src/lib/libcurses/touchwin.c [new file with mode: 0644]

diff --git a/usr/src/lib/libcurses/touchwin.c b/usr/src/lib/libcurses/touchwin.c
new file mode 100644 (file)
index 0000000..c0c12bc
--- /dev/null
@@ -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;
+       }
+}