sync.c

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

C
35
字号
/*	sync.c	4.1	83/03/09	*//* * Make the screen & screen mode look like what it's supposed to. * * There are two basic things to do here, put the _pen * in the right place, and make the line drawing mode be right. * We don't sync the cursor here, only when there's user input & it's on. */#include "2648.h"sync(){	if (_supx != _penx || _supy != _peny) {		escseq(ESCP);		outchar('a');		motion(_supx, _supy);	}	if (_supsmode != _actsmode) {		escseq(ESCM);		switch (_actsmode = _supsmode) {		case MX:			outchar('3');			break;		case MC:			outchar('1');			break;		case MS:			outchar('2');			break;		}		outchar('a');	}}

⌨️ 快捷键说明

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