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

📄 charimage.h

📁 操作系统SunOS 4.1.3版本的源码
💻 H
字号:
/*	@(#)charimage.h 1.1 92/07/30 SMI	*//* * Copyright (c) 1983 by Sun Microsystems, Inc. *//* * Definitions relating to maintenance of virtual screen image. *//* * Screen is maintained as an array of characters. * Screen is bottom lines and right columns. * Each line has length and array of characters. * Characters past length position are undefined. * Line is otherwise null terminated. */extern unsigned char	**image;extern char	**screenmode;extern int	top, bottom, left, right;extern int	cursrow, curscol;#define length(line)	((line)[-1])#define MODE_CLEAR	0#define MODE_INVERT	1#define MODE_UNDERSCORE	2#define MODE_BOLD	4#define	setlinelength(line, column) \     {  unsigned char *cptr = (unsigned char *)(&((line)[-1]));\        int _col = ((column)>right)?right:(column); \        (line)[(_col)] = '\0'; \        *cptr = (_col); \     }   

⌨️ 快捷键说明

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