⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _scrdown.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
#ifdef lintstatic char *sccsid = "@(#)_scrdown.c	4.1	(ULTRIX)	7/2/90";#endif lint#include "curses.ext"/* * Scroll the screen down (e.g. in the normal direction of text) one line * physically, and update the internal notion of what's on the screen * (SP->cur_body) to know about this.  Do it in such a way that we will * realize this has been done later and take advantage of it. */_scrdown(){	struct line *old_d, *old_p;	register int i, l=lines;#ifdef DEBUG	if(outf)	{		fprintf(outf, "_scrdown()\n");		fprintf( outf, "\tDoing _pos( %d, 0 )\n", lines - 1 );		fprintf( outf, "\tDoing _scrollf(1)\n" );	}#endif	/* physically... */	_pos(lines-1, 0);	_scrollf(1);	/* internally */	old_d = SP->std_body[1];	old_p = SP->cur_body[1];#ifdef	DEBUG	if(outf)	{		fprintf( outf, "lines = l = %d\n", l );	}#endif	DEBUG	for( i=1; i<=l; i++ )	{		SP->std_body[i] = SP->std_body[i+1];		SP->cur_body[i] = SP->cur_body[i+1];	}	SP->std_body[1] = NULL;	SP->cur_body[1] = NULL;	_line_free(old_d);	if( old_d != old_p )	{		_line_free(old_p);	}}

⌨️ 快捷键说明

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