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

📄 tabitoh.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*	tabitoh.c	4.1	83/08/05	*/#define INCH 240/* * C:Itoh Prowriter (dot matrix) 10 pitch * nroff driving table * by G. Rochlin, 15feb83 * Because the c:itoh will backspace only in incremental mode, * need to write a program to place commands Esc[ and Esc] around ^H. * If you want true underline mode instead of _^Hx_^Hy, etc., * have the script first replace _^Hx with EscXxEscY, etc. * Further refinements are possible to clean up files and * minimize throughput (e.g., delete all EscYEscX pairs). * In the terminal initialization (twinit) and exit (twrest) * strings, EscN sets 10-pitch. Twrest clears by commanding * Esc Y, Esc", and Esc$ to clear ul, bold, and "greek", * Esc] to restore logic-seek print, Escf and EscT24 to restore * forward linefeed at 6 lines/inch, Esc< for bidirectional * print, EscN, and ^M (\015) to clear the print buffer. * Since the itoh has no keyboard, you have to run it through * a video terminal or micro printer port. * The first twinit code (Esc`) and the last twrest code * (Esca) set the (proper) "transparent" or "buffered" print * mode for tvi950 and tvi925 and Freedom 100. This mode * is necessary on intelligent terminals to keep all the Esc * codes in the driver tables from scrambling the terminal's * brains.  (If you have a dumb terminal, almost any print * mode should be safe. Smart terminals without buffered print, * such as the tvi920, present problems.) * If you have a different terminal, * the shell script should also replace these codes with those * appropriate for your machine.  If you are using an sed * stream for the script, make sure to use single quotes to * isolate the ` from the shell. */struct {	int bset;	int breset;	int Hor;	int Vert;	int Newline;	int Char;	int Em;	int Halfline;	int Adj;	char *twinit;	char *twrest;	char *twnl;	char *hlr;	char *hlf;	char *flr;	char *bdon;	char *bdoff;	char *ploton;	char *plotoff;	char *up;	char *down;	char *right;	char *left;	char *codetab[256-32];	int zzz;	} t = {/*bset*/	0,/*breset*/	0177420,/*Hor*/		INCH/20,/*Vert*/	INCH/48,/*Newline*/	INCH/6,/*Char*/	INCH/10,/*Em*/		INCH/10,/*Halfline*/	INCH/12,/*Adj*/		INCH/10,/*twinit*/	"\033`\015\033N",/*twrest*/	"\033Y\033\042\033$\033]\033f\033T24\033<\033N\015\033a\n",/*twnl*/	"\015\n",/*hlr*/		"\033[\033T12\033r\n\033T24\033]\033f",/*hlf*/		"\033[\033T12\n\033T24\033]",/*flr*/         "\033[\033r\n\033f\033]",/*bdon*/	"\033!",/*bdoff*/	"\033\042",/*ploton*/	"\033>\033T03",/*plotoff*/	"\033<\033T24",/*up*/		"\033[\033r\n\033f\033]",/*down*/	"\033[\n\033]",/*right*/	"\033P \033N",/*left*/	"\b\033Q \033N",/*codetab*/#include "code.itoh"

⌨️ 快捷键说明

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