xref: /csrg-svn/old/roff/nroff_term/tab382.c (revision 48306)
1*48306Sbostic /*-
2*48306Sbostic  * %sccs.include.proprietary.c%
3*48306Sbostic  *
4*48306Sbostic  *	@(#)tab382.c	4.2 (Berkeley) 04/18/91
5*48306Sbostic  */
6*48306Sbostic 
714359Ssam #define INCH 240
814359Ssam /*
914359Ssam  * DTC 382 10 pitch
1014359Ssam  * nroff driving tables
1114359Ssam  * width and code tables
1214359Ssam  */
1314359Ssam 
1414359Ssam struct {
1514359Ssam 	int bset;
1614359Ssam 	int breset;
1714359Ssam 	int Hor;
1814359Ssam 	int Vert;
1914359Ssam 	int Newline;
2014359Ssam 	int Char;
2114359Ssam 	int Em;
2214359Ssam 	int Halfline;
2314359Ssam 	int Adj;
2414359Ssam 	char *twinit;
2514359Ssam 	char *twrest;
2614359Ssam 	char *twnl;
2714359Ssam 	char *hlr;
2814359Ssam 	char *hlf;
2914359Ssam 	char *flr;
3014359Ssam 	char *bdon;
3114359Ssam 	char *bdoff;
3214359Ssam 	char *ploton;
3314359Ssam 	char *plotoff;
3414359Ssam 	char *up;
3514359Ssam 	char *down;
3614359Ssam 	char *right;
3714359Ssam 	char *left;
3814359Ssam 	char *codetab[256-32];
3914359Ssam 	int zzz;
4014359Ssam 	} t = {
4114359Ssam /*bset*/	0,
4214359Ssam /*breset*/	0177420,
4314359Ssam /*Hor*/		INCH/60,
4414359Ssam /*Vert*/	INCH/48,
4514359Ssam /*Newline*/	INCH/6,
4614359Ssam /*Char*/	INCH/10,
4714359Ssam /*Em*/		INCH/10,
4814359Ssam /*Halfline*/	INCH/12,
4914359Ssam /*Adj*/		INCH/10,
5014359Ssam /*twinit*/	"\033\006",
5114359Ssam /*twrest*/	"\033\006",
5214359Ssam /*twnl*/	"\r\n",
5314359Ssam /*hlr*/		"\033H",
5414359Ssam /*hlf*/		"\033h",
5514359Ssam /*flr*/		"\032",
5614359Ssam /*bdon*/	"\033Z",
5714359Ssam /*bdoff*/	"\033z",
5814359Ssam /*ploton*/	"\006",
5914359Ssam /*plotoff*/	"\033\006",
6014359Ssam /*up*/		"\032",
6114359Ssam /*down*/	"\n",
6214359Ssam /*right*/	" ",
6314359Ssam /*left*/	"\b",
6414359Ssam /*codetab*/
6514359Ssam #include "code.300"
66