|
|
1.1 ! root 1: # include "curses.ext" ! 2: ! 3: /* ! 4: * This routine performs an insert-line on the window, leaving ! 5: * (_cury,_curx) unchanged. ! 6: */ ! 7: winsertln(win) ! 8: reg WINDOW *win; { ! 9: ! 10: reg char *temp; ! 11: reg int y; ! 12: reg char *end; ! 13: ! 14: temp = win->_y[win->_cury]; ! 15: win->_firstch[win->_cury] = 0; ! 16: win->_lastch[win->_cury] = win->_maxx - 1; ! 17: for (y = win->_maxy - 1; y > win->_cury; --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: return OK; ! 25: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.