1: # include   "curses.ext"
   2: 
   3: /*
   4:  * make it look like the whole window has been changed.
   5:  *
   6:  * %G% (Berkeley) %W%
   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: }

Defined functions

do_touch defined in line 22; used 2 times
Last modified: 1983-05-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 750
Valid CSS Valid XHTML 1.0 Strict