xref: /original-bsd/usr.bin/tset/tset.delays.h (revision a95f03a8)
1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)tset.delays.h	5.4 (Berkeley) 06/01/90
8  */
9 
10 /*
11 **  SYSTEM DEPENDENT TERMINAL DELAY TABLES
12 **
13 **	Evans Hall VAX
14 **
15 **	This file maintains the correspondence between the delays
16 **	defined in /etc/termcap and the delay algorithms on a
17 **	particular system.  For each type of delay, the bits used
18 **	for that delay must be specified (in XXbits) and a table
19 **	must be defined giving correspondences between delays and
20 **	algorithms.  Algorithms which are not fixed delays (such
21 **	as dependent on current column or line number) must be
22 **	cludged in some way at this time.
23 */
24 
25 
26 
27 /*
28 **  Carriage Return delays
29 */
30 
31 int	CRbits = CRDELAY;
32 struct delay	CRdelay[] =
33 {
34 	0,	CR0,
35 	9,	CR3,
36 	80,	CR1,
37 	160,	CR2,
38 	-1
39 };
40 
41 /*
42 **  New Line delays
43 */
44 
45 int	NLbits = NLDELAY;
46 struct delay	NLdelay[] =
47 {
48 	0,	NL0,
49 	66,	NL1,		/* special M37 delay */
50 	100,	NL2,
51 	-1
52 };
53 
54 
55 /*
56 **  Back Space delays
57 */
58 
59 int	BSbits = BSDELAY;
60 struct delay	BSdelay[] =
61 {
62 	0,	BS0,
63 	-1
64 };
65 
66 
67 /*
68 **  TaB delays
69 */
70 
71 int	TBbits = TBDELAY;
72 struct delay	TBdelay[] =
73 {
74 	0,	TAB0,
75 	11,	TAB1,		/* special M37 delay */
76 	-1
77 };
78 
79 
80 /*
81 **  Form Feed delays
82 */
83 
84 int	FFbits = VTDELAY;
85 struct delay	FFdelay[] =
86 {
87 	0,	FF0,
88 	2000,	FF1,
89 	-1
90 };
91 
92 #ifdef CBVIRTTERM
93 /*
94  * Map from the universal tables in termcap to the particular numbers
95  * this system uses.  The lack of standardization of terminal numbers
96  * is a botch but such is life.
97  */
98 struct vt_map {
99 	char stdnum;
100 	char localnum;
101 } vt_map[] = {
102 #ifdef	TERM_TEC
103 	1, TERM_TEC,
104 #endif
105 #ifdef	TERM_V61
106 	2, TERM_V61,
107 #endif
108 #ifdef	TERM_V10
109 	3, TERM_V10,
110 #endif
111 #ifdef	TERM_TEX
112 	4, TERM_TEX,
113 #endif
114 #ifdef	TERM_D40
115 	5, TERM_D40,
116 #endif
117 #ifdef	TERM_H45
118 	6, TERM_H45,
119 #endif
120 #ifdef	TERM_D42
121 	7, TERM_D42,
122 #endif
123 #ifdef TERM_C100
124 	8, TERM_C100,
125 #endif
126 #ifdef TERM_MIME
127 	9, TERM_MIME,
128 #endif
129 	0,0
130 };
131 #endif
132