deleteln.c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 31 行

C
31
字号
#ifdef lintstatic char *sccsid = "@(#)deleteln.c	4.1	(ULTRIX)	7/2/90";#endif lint#include	"curses.h"/* *	This routine deletes a line from the screen.  It leaves * (_cury,_curx) unchanged. * * 4/16/81 (Berkeley) @(#)deleteln.c	1.3 */wdeleteln(win)reg WINDOW	*win; {	reg chtype	*temp;	reg int		y;	reg chtype	*end;	temp = win->_y[win->_cury];	for (y = win->_cury; y < win->_maxy; y++) {		win->_y[y] = win->_y[y+1];		win->_firstch[y] = 0;		win->_lastch[y] = win->_maxx - 1;	}	for (end = &temp[win->_maxx]; temp < end; )		*temp++ = ' ';	win->_y[win->_maxy-1] = temp - win->_maxx;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?