|
|
1.1 ! root 1: /* @(#) deleteln.c: 1.1 10/15/83 (1.2 4/7/82) */ ! 2: ! 3: #include "curses.h" ! 4: ! 5: /* ! 6: * This routine deletes a line from the screen. It leaves ! 7: * (_cury,_curx) unchanged. ! 8: * ! 9: * 4/16/81 (Berkeley) @(#)deleteln.c 1.3 ! 10: */ ! 11: wdeleteln(win) ! 12: reg WINDOW *win; { ! 13: ! 14: reg chtype *temp; ! 15: reg int y; ! 16: reg chtype *end; ! 17: ! 18: temp = win->_y[win->_cury]; ! 19: for (y = win->_cury; y < win->_maxy; y++) { ! 20: win->_y[y] = win->_y[y+1]; ! 21: win->_firstch[y] = 0; ! 22: win->_lastch[y] = win->_maxx - 1; ! 23: } ! 24: for (end = &temp[win->_maxx]; temp < end; ) ! 25: *temp++ = ' '; ! 26: win->_y[win->_maxy-1] = temp - win->_maxx; ! 27: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.