xref: /titanic_41/usr/src/cmd/vi/misc/del.h.cb (revision cde2885fdf538266ee2a3b08dee2d5075ce8fa2b)
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#ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.5	*/
23/*
24**  SYSTEM DEPENDENT TERMINAL DELAY TABLES
25**
26**	CB/Unix 2.3
27**
28**	This looks like V7, and it even works, but the kernel really
29**	only has one bit for each kind of delay so it's somewhat
30**	inaccurate.  But it tries to simulate v7.
31**
32**	This file maintains the correspondence between the delays
33**	defined in /etc/termcap and the delay algorithms on a
34**	particular system.  For each type of delay, the bits used
35**	for that delay must be specified (in XXbits) and a table
36**	must be defined giving correspondences between delays and
37**	algorithms.  Algorithms which are not fixed delays (such
38**	as dependent on current column or line number) must be
39**	kludged in some way at this time.
40*/
41
42
43
44/*
45**  Carriage Return delays
46*/
47
48int	CRbits = CRDELAY;
49struct delay	CRdelay[] =
50{
51	0,	CR0,
52	9,	CR3,
53	80,	CR1,
54	160,	CR2,
55	-1
56};
57
58/*
59**  New Line delays
60*/
61
62int	NLbits = NLDELAY;
63struct delay	NLdelay[] =
64{
65	0,	NL0,
66	66,	NL1,		/* special M37 delay */
67	100,	NL2,
68	-1
69};
70
71
72/*
73**  Back Space delays
74*/
75
76int	BSbits = BSDELAY;
77struct delay	BSdelay[] =
78{
79	0,	BS0,
80	-1
81};
82
83
84/*
85**  TaB delays
86*/
87
88int	TBbits = TBDELAY;
89struct delay	TBdelay[] =
90{
91	0,	TAB0,
92	11,	TAB1,		/* special M37 delay */
93	-1
94};
95
96
97/*
98**  Form Feed delays
99*/
100
101int	FFbits = VTDELAY;
102struct delay	FFdelay[] =
103{
104	0,	FF0,
105	2000,	FF1,
106	-1
107};
108
109#ifdef CBVIRTTERM
110/*
111 * Map from the universal tables in termcap to the particular numbers
112 * this system uses.  The lack of standardization of terminal numbers
113 * is a botch but such is life.
114 */
115struct vt_map {
116	char stdnum;
117	char localnum;
118} vt_map[] = {
119#ifdef	TERM_TEC
120	1, TERM_TEC,
121#endif
122#ifdef	TERM_V61
123	2, TERM_V61,
124#endif
125#ifdef	TERM_V10
126	3, TERM_V10,
127#endif
128#ifdef	TERM_TEX
129	4, TERM_TEX,
130#endif
131#ifdef	TERM_D40
132	5, TERM_D40,
133#endif
134#ifdef	TERM_H45
135	6, TERM_H45,
136#endif
137#ifdef	TERM_D42
138	7, TERM_D42,
139#endif
140#ifdef TERM_C100
141	8, TERM_C100,
142#endif
143#ifdef TERM_MIME
144	9, TERM_MIME,
145#endif
146	0,0
147};
148#endif
149