1: # include   "curses.ext"
   2: 
   3: /*
   4:  *	This routine deletes a line from the screen.  It leaves
   5:  * (_cury,_curx) unchanged.
   6:  *
   7:  * 5/11/81 (Berkeley) @(#)deleteln.c	1.4
   8:  */
   9: wdeleteln(win)
  10: reg WINDOW  *win; {
  11: 
  12:     reg char    *temp;
  13:     reg int     y;
  14:     reg char    *end;
  15: 
  16:     temp = win->_y[win->_cury];
  17:     for (y = win->_cury; y < win->_maxy - 1; y++) {
  18:         win->_y[y] = win->_y[y+1];
  19:         win->_firstch[y] = 0;
  20:         win->_lastch[y] = win->_maxx - 1;
  21:     }
  22:     for (end = &temp[win->_maxx]; temp < end; )
  23:         *temp++ = ' ';
  24:     win->_y[win->_maxy-1] = temp - win->_maxx;
  25: }

Defined functions

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