. use library function to parse memory string
[minix3.git] / lib / curses / wintouch.c
blob05f5d78d605de7717ab6f48b54aa4cae322300dc
1 /****************************************************************/
2 /* Touchwin() routine of the PCcurses package */
3 /* */
4 /****************************************************************/
5 /* This version of curses is based on ncurses, a curses version */
6 /* Originally written by Pavel Curtis at Cornell University. */
7 /* I have made substantial changes to make it run on IBM PC's, */
8 /* And therefore consider myself free to make it public domain. */
9 /* Bjorn Larsson (...mcvax!enea!infovax!bl) */
10 /****************************************************************/
11 /* 1.0: Release: 870515 */
12 /****************************************************************/
13 /* Modified to run under the MINIX operating system by Don Cope */
14 /* These changes are also released into the public domain. */
15 /* 900906 */
16 /****************************************************************/
18 #include <curses.h>
19 #include "curspriv.h"
21 /****************************************************************/
22 /* Touchwin() marks all lines of window 'win' as changed, from */
23 /* The first to the last character on the line. */
24 /****************************************************************/
26 void touchwin(win)
27 WINDOW *win;
29 int y;
30 int maxy;
31 int maxx;
33 maxy = win->_maxy;
34 maxx = win->_maxx;
36 for (y = 0; y <= maxy; y++) {
37 win->_minchng[y] = 0;
38 win->_maxchng[y] = maxx;
39 } /* for */
40 } /* touchwin */