. use library function to parse memory string
[minix3.git] / lib / curses / wdeleteln.c
blob50faa446199ef7000c07a9856d40ac63b4a88ee1
1 #include <curses.h>
2 #include "curspriv.h"
4 /****************************************************************/
5 /* Wdeleteln() deletes the line at the window cursor, and the */
6 /* Lines below it are shifted up, inserting a blank line at */
7 /* The bottom of the window. */
8 /****************************************************************/
10 int wdeleteln(win)
11 WINDOW *win;
13 int *end, *temp, y, blank;
15 blank = ' ' | (win->_attrs & ATR_MSK);
17 temp = win->_line[win->_cury];
18 for (y = win->_cury; y < win->_regbottom; y++) {
19 win->_line[y] = win->_line[y + 1];
20 win->_minchng[y] = 0;
21 win->_maxchng[y] = win->_maxx;
23 win->_minchng[y] = 0;
24 win->_maxchng[y] = win->_maxx;
25 win->_line[win->_regbottom] = temp;
26 for (end = &(temp[win->_maxx]); temp <= end;) *temp++ = blank;
27 return(OK);