add another digit to wchan, too many processes wait on higher addresses
[unix-history] / usr / src / lib / libcurses / touchwin.c
CommitLineData
ce69801e
KA
1# include "curses.ext"
2
3/*
4 * make it look like the whole window has been changed.
5 *
60d72089 6 * %G% (Berkeley) @(#)touchwin.c 1.2
ce69801e
KA
7 */
8touchwin(win)
9reg WINDOW *win;
10{
60d72089
KA
11 reg WINDOW *wp;
12
13 do_touch(win);
14 for (wp = win->_nextp; wp != win; wp = wp->_nextp)
15 do_touch(wp);
16}
17
18/*
19 * do_touch:
20 * Touch the window
21 */
22static
23do_touch(win)
24reg WINDOW *win; {
25
ce69801e
KA
26 reg int y, maxy, maxx;
27
28 maxy = win->_maxy;
29 maxx = win->_maxx - 1;
30 for (y = 0; y < maxy; y++) {
31 win->_firstch[y] = 0;
32 win->_lastch[y] = maxx;
33 }
34}