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

📄 lpdchar.c

📁 早期freebsd实现
💻 C
📖 第 1 页 / 共 2 页
字号:
/* * Copyright (c) 1983, 1993 *	The Regents of the University of California.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */#ifndef lintstatic char sccsid[] = "@(#)lpdchar.c	8.1 (Berkeley) 6/6/93";#endif /* not lint *//* *	Character set for line printer daemon */#include "lp.local.h"#define c_______ 0#define c______1 01#define c_____1_ 02#define c____1__ 04#define c____11_ 06#define c___1___ 010#define c___1__1 011#define c___1_1_ 012#define c___11__ 014#define c__1____ 020#define c__1__1_ 022#define c__1_1__ 024#define c__11___ 030#define c__111__ 034#define c__111_1 035#define c__1111_ 036#define c__11111 037#define c_1_____ 040#define c_1____1 041#define c_1___1_ 042#define c_1__1__ 044#define c_1_1___ 050#define c_1_1__1 051#define c_1_1_1_ 052#define c_11____ 060#define c_11_11_ 066#define c_111___ 070#define c_111__1 071#define c_111_1_ 072#define c_1111__ 074#define c_1111_1 075#define c_11111_ 076#define c_111111 077#define c1______ 0100#define c1_____1 0101#define c1____1_ 0102#define c1____11 0103#define c1___1__ 0104#define c1___1_1 0105#define c1___11_ 0106#define c1__1___ 0110#define c1__1__1 0111#define c1__11_1 0115#define c1__1111 0117#define c1_1____ 0120#define c1_1___1 0121#define c1_1_1_1 0125#define c1_1_11_ 0126#define c1_111__ 0134#define c1_1111_ 0136#define c11____1 0141#define c11___1_ 0142#define c11___11 0143#define c11_1___ 0150#define c11_1__1 0151#define c111_11_ 0166#define c1111___ 0170#define c11111__ 0174#define c111111_ 0176#define c1111111 0177char scnkey[][HEIGHT] =	/* this is relatively easy to modify */			/* just look: */{	{ c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______ },			/*   */	{ c__11___,	  c__11___,	  c__11___,	  c__11___,	  c__11___,	  c_______,	  c_______,	  c__11___,	  c__11___ },			/* ! */	{ c_1__1__,	  c_1__1__,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______ },			/* " */	{ c_______,	  c__1_1__,	  c__1_1__,	  c1111111,	  c__1_1__,	  c1111111,	  c__1_1__,	  c__1_1__,	  c_______ },			/* # */	{ c___1___,	  c_11111_,	  c1__1__1,	  c1__1___,	  c_11111_,	  c___1__1,	  c1__1__1,	  c_11111_,	  c___1___ },			/* $ */ 	{ c_1_____, 	  c1_1___1, 	  c_1___1_, 	  c____1__, 	  c___1___, 	  c__1____, 	  c_1___1_, 	  c1___1_1, 	  c_____1_ },			/* % */  	{ c_11____, 	  c1__1___, 	  c1___1__, 	  c_1_1___, 	  c__1____, 	  c_1_1__1, 	  c1___11_, 	  c1___11_, 	  c_111__1 },			/* & */  	{ c___11__, 	  c___11__, 	  c___1___, 	  c__1____, 	  c_______, 	  c_______, 	  c_______, 	  c_______, 	  c_______ },			/* ' */  	{ c____1__, 	  c___1___, 	  c__1____, 	  c__1____, 	  c__1____, 	  c__1____, 	  c__1____, 	  c___1___, 	  c____1__ },			/* ( */  	{ c__1____, 	  c___1___, 	  c____1__, 	  c____1__, 	  c____1__, 	  c____1__, 	  c____1__, 	  c___1___, 	  c__1____ },			/* ) */  	{ c_______, 	  c___1___, 	  c1__1__1, 	  c_1_1_1_, 	  c__111__, 	  c_1_1_1_, 	  c1__1__1, 	  c___1___, 	  c_______ },			/* * */  	{ c_______, 	  c___1___, 	  c___1___, 	  c___1___, 	  c1111111, 	  c___1___, 	  c___1___, 	  c___1___, 	  c_______ },			/* + */  	{ c_______, 	  c_______, 	  c_______, 	  c_______, 	  c__11___, 	  c__11___, 	  c__1____, 	  c_1_____, 	  c_______ },			/* , */  	{ c_______, 	  c_______, 	  c_______, 	  c_______, 	  c1111111, 	  c_______, 	  c_______, 	  c_______, 	  c_______ },			/* - */  	{ c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c_______,	  c__11___,	  c__11___ },			/* . */	{ c_______,	  c______1,	  c_____1_,	  c____1__,	  c___1___,	  c__1____,	  c_1_____,	  c1______,	  c_______ },			/* / */	{ c_11111_,	  c1_____1,	  c1____11,	  c1___1_1,	  c1__1__1,	  c1_1___1,	  c11____1,	  c1_____1,	  c_11111_ },			/* 0 */	{ c___1___,	  c__11___,	  c_1_1___,	  c___1___,	  c___1___,	  c___1___,	  c___1___,	  c___1___,	  c_11111_ },			/* 1 */	{ c_11111_,	  c1_____1,	  c______1,	  c_____1_,	  c__111__,	  c_1_____,	  c1______,	  c1______,	  c1111111 },			/* 2 */	{ c_11111_,	  c1_____1,	  c______1,	  c______1,	  c__1111_,	  c______1,	  c______1,	  c1_____1,	  c_11111_ },			/* 3 */	{ c_____1_,	  c____11_,	  c___1_1_,	  c__1__1_,	  c_1___1_,	  c1____1_,	  c1111111,	  c_____1_,	  c_____1_ },			/* 4 */	{ c1111111,	  c1______,	  c1______,	  c11111__,	  c_____1_,	  c______1,	  c______1,	  c1____1_,	  c_1111__ },			/* 5 */	{ c__1111_,	  c_1_____,	  c1______,	  c1______,	  c1_1111_,	  c11____1,	  c1_____1,	  c1_____1,	  c_11111_ },			/* 6 */	{ c1111111,	  c1_____1,	  c_____1_,	  c____1__,	  c___1___,	  c__1____,	  c__1____,	  c__1____,	  c__1____ },			/* 7 */	{ c_11111_,	  c1_____1,	  c1_____1,	  c1_____1,	  c_11111_,	  c1_____1,	  c1_____1,	  c1_____1,	  c_11111_ },			/* 8 */	{ c_11111_,	  c1_____1,	  c1_____1,	  c1_____1,	  c_111111,	  c______1,	  c______1,	  c1_____1,	  c_1111__ },			/* 9 */	{ c_______,	  c_______,	  c_______,	  c__11___,	  c__11___,	  c_______,	  c_______,	  c__11___,	  c__11___ },			/* : */	{ c__11___,	  c__11___,	  c_______,	  c_______,	  c__11___,	  c__11___,	  c__1____,	  c_1_____,	  c_______ },			/* ; */	{ c____1__,	  c___1___,	  c__1____,	  c_1_____,	  c1______,	  c_1_____,	  c__1____,	  c___1___,	  c____1__ },			/* < */	{ c_______,	  c_______,	  c_______,	  c1111111,	  c_______,	  c1111111,	  c_______,	  c_______,	  c_______ },			/* = */	{ c__1____,	  c___1___,	  c____1__,	  c_____1_,	  c______1,	  c_____1_,	  c____1__,	  c___1___,	  c__1____ },			/* > */	{ c__1111_,	  c_1____1,	  c_1____1,	  c______1,	  c____11_,	  c___1___,	  c___1___,	  c_______,	  c___1___ },			/* ? */	{ c__1111_,	  c_1____1,	  c1__11_1,	  c1_1_1_1,	  c1_1_1_1,	  c1_1111_,	  c1______,	  c_1____1,	  c__1111_ },			/* @ */	{ c__111__,	  c_1___1_,	  c1_____1,	  c1_____1,	  c1111111,	  c1_____1,	  c1_____1,	  c1_____1,	  c1_____1 },			/* A */	{ c111111_,	  c_1____1,	  c_1____1,	  c_1____1,	  c_11111_,	  c_1____1,	  c_1____1,	  c_1____1,	  c111111_ },			/* B */	{ c__1111_,	  c_1____1,	  c1______,	  c1______,	  c1______,	  c1______,	  c1______,	  c_1____1,	  c__1111_ },			/* C */	{ c11111__,	  c_1___1_,	  c_1____1,	  c_1____1,	  c_1____1,	  c_1____1,	  c_1____1,	  c_1___1_,	  c11111__ },			/* D */	{ c1111111,	  c1______,	  c1______,	  c1______,	  c111111_,	  c1______,	  c1______,	  c1______,	  c1111111 },			/* E */	{ c1111111,	  c1______,	  c1______,	  c1______,	  c111111_,	  c1______,	  c1______,	  c1______,	  c1______ },			/* F */	{ c__1111_,	  c_1____1,	  c1______,	  c1______,	  c1______,	  c1__1111,	  c1_____1,	  c_1____1,	  c__1111_ },			/* G */	{ c1_____1,	  c1_____1,	  c1_____1,	  c1_____1,	  c1111111,	  c1_____1,	  c1_____1,	  c1_____1,	  c1_____1 },			/* H */	{ c_11111_,	  c___1___,	  c___1___,	  c___1___,	  c___1___,	  c___1___,	  c___1___,	  c___1___,	  c_11111_ },			/* I */	{ c__11111,	  c____1__,	  c____1__,	  c____1__,	  c____1__,	  c____1__,	  c____1__,

⌨️ 快捷键说明

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