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 winsdelln(win, n).
26 ** positive n insert n lines above current line
27 ** negative n delete n lines starting from current line
31 #include <curses.priv.h>
36 winsdelln(WINDOW *win, int n)
38 T((T_CALLED("winsdel(%p,%d)"), win, n));
43 _nc_scroll_window(win, -n, win->_cury, win->_maxy);
44 touchline(win, win->_cury, win->_maxy - win->_cury + 1);