1 /* 2 * Copyright (c) 1981 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)delch.c 5.6 (Berkeley) 08/23/92"; 10 #endif /* not lint */ 11 12 #include <curses.h> 13 14 /* 15 * wdelch -- 16 * Do an insert-char on the line, leaving (_cury, _curx) unchanged. 17 */ 18 int 19 wdelch(win) 20 register WINDOW *win; 21 { 22 register char *end, *temp1, *temp2; 23 24 end = &win->_y[win->_cury][win->_maxx - 1]; 25 temp1 = &win->_y[win->_cury][win->_curx]; 26 temp2 = temp1 + 1; 27 while (temp1 < end) 28 *temp1++ = *temp2++; 29 *temp1 = ' '; 30 touchline(win, win->_cury, win->_curx, win->_maxx - 1); 31 return (OK); 32 } 33