1 /* $MirOS: src/share/tmac/tab/tabnec12.c,v 1.3 2012/05/22 00:06:47 tg Exp $ */
2 
3 /*-
4  * Copyright (c) 1979, 1980, 1981, 1986, 1988, 1990, 1991, 1992
5  *     The Regents of the University of California.
6  * Copyright (C) Caldera International Inc.  2001-2002.
7  * Copyright (c) 2003, 2004, 2012
8  *	Thorsten "mirabilos" Glaser <tg@mirbsd.org>
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms,
12  * with or without modification, are permitted provided
13  * that the following conditions are met:
14  *
15  * Redistributions of source code and documentation must retain
16  * the above copyright notice, this list of conditions and the
17  * following disclaimer.  Redistributions in binary form must
18  * reproduce the above copyright notice, this list of conditions
19  * and the following disclaimer in the documentation and/or other
20  * materials provided with the distribution.
21  *
22  * All advertising materials mentioning features or use of this
23  * software must display the following acknowledgement:
24  *   This product includes software developed or owned by
25  *   Caldera International, Inc.
26  *
27  * Neither the name of Caldera International, Inc. nor the names
28  * of other contributors may be used to endorse or promote products
29  * derived from this software without specific prior written permission.
30  *
31  * USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
32  * INTERNATIONAL, INC. AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
33  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
34  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
35  * ARE DISCLAIMED.  IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE
36  * LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR
37  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
39  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
41  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
42  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43  *
44  *	@(#)tabnec12.c	4.3 (Berkeley) 4/18/91
45  */
46 
47 #define INCH 240
48 /*
49  * NEC Spinwriter 5500 or 7700 12 Pitch
50  * nroff driving table
51  * Courier - 72/Manifold thimble
52  * by Skip Walker, ucbvax!c:bodega, 21nov82
53  */
54 struct {
55 	int bset;
56 	int breset;
57 	int Hor;
58 	int Vert;
59 	int Newline;
60 	int Char;
61 	int Em;
62 	int Halfline;
63 	int Adj;
64 	const char *twinit;
65 	const char *twrest;
66 	const char *twnl;
67 	const char *hlr;
68 	const char *hlf;
69 	const char *flr;
70 	const char *bdon;
71 	const char *bdoff;
72 	const char *ploton;
73 	const char *plotoff;
74 	const char *up;
75 	const char *down;
76 	const char *right;
77 	const char *left;
78 	const char *codetab[256-32];
79 	int zzz;
80 	} t = {
81 /*bset*/	0,
82 /*breset*/	0,
83 /*Hor*/		INCH/120,
84 /*Vert*/	INCH/48,
85 /*Newline*/	INCH/6,
86 /*Char*/	INCH/12,
87 /*Em*/		INCH/12,
88 /*Halfline*/	INCH/12,
89 /*Adj*/		INCH/12,
90 /*twinit*/	"",
91 /*twrest*/	"",
92 /*twnl*/	"\n",
93 /*hlr*/		"\033]S\0339\033]W",
94 /*hlf*/		"\033]S\033ZA\033]W",
95 /*flr*/		"\0339",
96 /*bdon*/	"\033+",
97 /*bdoff*/	"\033,",
98 /*ploton*/	"\033]A\033]P",
99 /*plotoff*/	"\033]J\033]W",
100 /*up*/		"\0339",
101 /*down*/	"\033ZA",
102 /*right*/	" ",
103 /*left*/	"\b",
104 /*codetab*/	{
105 #include "code.nec"
106 		},
107 /*zzz*/		0
108 };
109