xref: /titanic_41/usr/src/cmd/troff/nroff.d/tw.h (revision fa9e4066f08beec538e775443c5be79dd423fcab)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #pragma ident	"%Z%%M%	%I%	%E% SMI"
27 
28 /*
29  * University Copyright- Copyright (c) 1982, 1986, 1988
30  * The Regents of the University of California
31  * All Rights Reserved
32  *
33  * University Acknowledgment- Portions of this document are derived from
34  * software developed by the University of California, Berkeley, and its
35  * contributors.
36  */
37 
38 /* typewriter driving table structure */
39 
40 #define	NROFFCHARS	NCHARS	/* ought to be dynamic */
41 #define	_SPECCHAR_ST	256
42 
43 extern struct t {
44 	int	bset;		/* these bits have to be on */
45 	int	breset;		/* these bits have to be off */
46 	int	Hor;		/* #units in minimum horiz motion */
47 	int	Vert;		/* #units in minimum vert motion */
48 	int	Newline;	/* #units in single line space */
49 	int	Char;		/* #units in character width */
50 	int	Em;		/* ditto */
51 	int	Halfline;	/* half line units */
52 	int	Adj;		/* minimum units for horizontal adjustment */
53 	char	*twinit;	/* initialize terminal */
54 	char	*twrest;	/* reinitialize terminal */
55 	char	*twnl;		/* terminal sequence for newline */
56 	char	*hlr;		/* half-line reverse */
57 	char	*hlf;		/* half-line forward */
58 	char	*flr;		/* full-line reverse */
59 	char	*bdon;		/* turn bold mode on */
60 	char	*bdoff;		/* turn bold mode off */
61 	char	*iton;		/* turn italic mode on */
62 	char	*itoff;		/* turn italic mode off */
63 	char	*ploton;	/* turn plot mode on */
64 	char	*plotoff;	/* turn plot mode off */
65 	char	*up;		/* sequence to move up in plot mode */
66 	char	*down;		/* ditto */
67 	char	*right;		/* ditto */
68 	char	*left;		/* ditto */
69 
70 	char	*codetab[NROFFCHARS-_SPECCHAR_ST];
71 	char	width[NROFFCHARS];
72 } t;
73