1 # include "curses.ext" 2 3 /* 4 * make it look like the whole window has been changed. 5 * 6 * 05/09/83 (Berkeley) @(#)touchwin.c 1.2 7 */ 8 touchwin(win) 9 reg WINDOW *win; 10 { 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 */ 22 static 23 do_touch(win) 24 reg WINDOW *win; { 25 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 } 35