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 * University Copyright- Copyright (c) 1982, 1986, 1988 27 * The Regents of the University of California 28 * All Rights Reserved 29 * 30 * University Acknowledgment- Portions of this document are derived from 31 * software developed by the University of California, Berkeley, and its 32 * contributors. 33 */ 34 35 /* typewriter driving table structure */ 36 37 #define NROFFCHARS NCHARS /* ought to be dynamic */ 38 #define _SPECCHAR_ST 256 39 40 extern struct t { 41 int bset; /* these bits have to be on */ 42 int breset; /* these bits have to be off */ 43 int Hor; /* #units in minimum horiz motion */ 44 int Vert; /* #units in minimum vert motion */ 45 int Newline; /* #units in single line space */ 46 int Char; /* #units in character width */ 47 int Em; /* ditto */ 48 int Halfline; /* half line units */ 49 int Adj; /* minimum units for horizontal adjustment */ 50 char *twinit; /* initialize terminal */ 51 char *twrest; /* reinitialize terminal */ 52 char *twnl; /* terminal sequence for newline */ 53 char *hlr; /* half-line reverse */ 54 char *hlf; /* half-line forward */ 55 char *flr; /* full-line reverse */ 56 char *bdon; /* turn bold mode on */ 57 char *bdoff; /* turn bold mode off */ 58 char *iton; /* turn italic mode on */ 59 char *itoff; /* turn italic mode off */ 60 char *ploton; /* turn plot mode on */ 61 char *plotoff; /* turn plot mode off */ 62 char *up; /* sequence to move up in plot mode */ 63 char *down; /* ditto */ 64 char *right; /* ditto */ 65 char *left; /* ditto */ 66 67 char *codetab[NROFFCHARS-_SPECCHAR_ST]; 68 char width[NROFFCHARS]; 69 } t; 70