xref: /csrg-svn/old/roff/nroff_term/tab302.c (revision 48306)
1*48306Sbostic /*-
2*48306Sbostic  * %sccs.include.proprietary.c%
3*48306Sbostic  *
4*48306Sbostic  *	@(#)tab302.c	4.2 (Berkeley) 04/18/91
5*48306Sbostic  */
6*48306Sbostic 
714356Ssam #define INCH 240
814356Ssam /*
914356Ssam  * DTC 302 or 300s 10 pitch
1014356Ssam  * nroff driving tables
1114356Ssam  * width and code tables
1214356Ssam  */
1314356Ssam 
1414356Ssam struct {
1514356Ssam 	int bset;
1614356Ssam 	int breset;
1714356Ssam 	int Hor;
1814356Ssam 	int Vert;
1914356Ssam 	int Newline;
2014356Ssam 	int Char;
2114356Ssam 	int Em;
2214356Ssam 	int Halfline;
2314356Ssam 	int Adj;
2414356Ssam 	char *twinit;
2514356Ssam 	char *twrest;
2614356Ssam 	char *twnl;
2714356Ssam 	char *hlr;
2814356Ssam 	char *hlf;
2914356Ssam 	char *flr;
3014356Ssam 	char *bdon;
3114356Ssam 	char *bdoff;
3214356Ssam 	char *ploton;
3314356Ssam 	char *plotoff;
3414356Ssam 	char *up;
3514356Ssam 	char *down;
3614356Ssam 	char *right;
3714356Ssam 	char *left;
3814356Ssam 	char *codetab[256-32];
3914356Ssam 	int zzz;
4014356Ssam 	} t = {
4114356Ssam /*bset*/	0,
4214356Ssam /*breset*/	0177420,
4314356Ssam /*Hor*/		INCH/60,
4414356Ssam /*Vert*/	INCH/48,
4514356Ssam /*Newline*/	INCH/6,
4614356Ssam /*Char*/	INCH/10,
4714356Ssam /*Em*/		INCH/10,
4814356Ssam /*Halfline*/	INCH/12,
4914356Ssam /*Adj*/		INCH/10,
5014356Ssam /*twinit*/	"\033\006",
5114356Ssam /*twrest*/	"\033\006",
5214356Ssam /*twnl*/	"\015\n",
5314356Ssam /*hlr*/		"\033H",
5414356Ssam /*hlf*/		"\033h",
5514356Ssam /*flr*/		"\032",
5614356Ssam /*bdon*/	"\033E",
5714356Ssam /*bdoff*/	"\033E",
5814356Ssam /*ploton*/	"\006",
5914356Ssam /*plotoff*/	"\033\006",
6014356Ssam /*up*/		"\032",
6114356Ssam /*down*/	"\n",
6214356Ssam /*right*/	" ",
6314356Ssam /*left*/	"\b",
6414356Ssam /*codetab*/
6514356Ssam #include "code.300"
66