delete spurious debug abort()
[unix-history] / usr / src / lib / libcurses / deleteln.c
CommitLineData
62a5fc29
KA
1# include "curses.ext"
2
3/*
4 * This routine deletes a line from the screen. It leaves
5 * (_cury,_curx) unchanged.
6 *
8da28f22 7 * %G% (Berkeley) @(#)deleteln.c 1.4
62a5fc29
KA
8 */
9wdeleteln(win)
10reg WINDOW *win; {
11
12 reg char *temp;
13 reg int y;
14 reg char *end;
15
16 temp = win->_y[win->_cury];
8da28f22 17 for (y = win->_cury; y < win->_maxy - 1; y++) {
62a5fc29
KA
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++ = ' ';
5a3f0553 24 win->_y[win->_maxy-1] = temp - win->_maxx;
62a5fc29 25}