2 /***************************************************************************
4 ****************************************************************************
5 * ncurses is copyright (C) 1992-1995 *
7 * zmbenhal@netcom.com *
9 * esr@snark.thyrsus.com *
11 * Permission is hereby granted to reproduce and distribute ncurses *
12 * by any means and for any fee, whether alone or as part of a *
13 * larger distribution, in source or in binary form, PROVIDED *
14 * this notice is included with any such distribution, and is not *
15 * removed from any of its header files. Mention of ncurses in any *
16 * applications linked with it is highly appreciated. *
18 * ncurses comes AS IS with no warranty, implied or expressed. *
20 ***************************************************************************/
25 ** The routine wdelch().
29 #include <curses.priv.h>
31 MODULE_ID("$Id: lib_delch.c,v 1.5 1997/02/01 23:18:18 tom Exp $")
33 int wdelch(WINDOW *win)
35 chtype *temp1, *temp2;
37 chtype blank = _nc_background(win);
39 T((T_CALLED("wdelch(%p)"), win));
41 end = &win->_line[win->_cury].text[win->_maxx];
42 temp2 = &win->_line[win->_cury].text[win->_curx + 1];
50 win->_line[win->_cury].lastchar = win->_maxx;
52 if (win->_line[win->_cury].firstchar == _NOCHANGE
53 || win->_line[win->_cury].firstchar > win->_curx)
54 win->_line[win->_cury].firstchar = win->_curx;