options.c

来自「操作系统源代码」· C语言 代码 · 共 88 行

C
88
字号
#include <curses.h>#include "curspriv.h"static bool hasold = FALSE;	/* for remembering old cursor type */static int oldmode;/****************************************************************//* Idlok() is used to set  flag for using the terminal insert/	*//* Delete line capabilities. This is not relevant for the PC	*//* Version of curses, and thus nothing is done.			*//****************************************************************/void idlok(win, flag)WINDOW *win;bool flag;{}/****************************************************************//* Clearok() marks window 'win' to cause screen clearing and	*//* Redraw the next time a refresh is done.			*//****************************************************************/void clearok(win, flag)WINDOW *win;bool flag;{  if (win == curscr)	_cursvar.tmpwin->_clear = flag;  else	win->_clear = flag;}/****************************************************************//* Leaveok() marks window 'win' to allow the update routines	*//* To leave the hardware cursor where it happens to be at the	*//* End of update. Usually used in combination with cursoff().	*//****************************************************************/void leaveok(win, flag)WINDOW *win;bool flag;{  win->_leave = flag;}/****************************************************************//* Scrollok() marks window 'win' to allow the scrolling region	*//* Of it to actually scroll.					*//****************************************************************/void scrollok(win, flag)WINDOW *win;bool flag;{  win->_scroll = flag;}/****************************************************************//* Nodelay() marks the window to make character input non-	*//* Waiting, i.e. if there is no character to get, -1 will be	*//* Returned.							*//****************************************************************/void nodelay(win, flag)WINDOW *win;bool flag;{  win->_nodelay = flag;}/****************************************************************//* Keypad() marks window 'win' to use the special keypad mode.	*//****************************************************************/void keypad(win, flag)WINDOW *win;bool flag;{  win->_keypad = flag;}/****************************************************************//* Meta() allows use of any alternate character set allowed by	*//* The terminal. We always allow this on the PC, so this one	*//* Does nothing.						*//****************************************************************/void meta(win, flag)WINDOW *win;bool flag;{}

⌨️ 快捷键说明

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