2 /* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
3 * details. If they are missing then this copy is in violation of *
4 * the copyright conditions. */
9 ** The routine wdelch().
13 #include "curses.priv.h"
16 int wdelch(WINDOW *win)
18 chtype *temp1, *temp2;
20 chtype blank = _nc_background(win);
22 T(("wdelch(%x) called", win));
24 end = &win->_line[win->_cury][win->_maxx];
25 temp2 = &win->_line[win->_cury][win->_curx + 1];
33 win->_lastchar[win->_cury] = win->_maxx;
35 if (win->_firstchar[win->_cury] == _NOCHANGE
36 || win->_firstchar[win->_cury] > win->_curx)
37 win->_firstchar[win->_cury] = win->_curx;