xref: /onnv-gate/usr/src/cmd/terminfo/dec.ti (revision 0:68f95e015346)
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#
23# Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
28#	  All Rights Reserved
29
30#ident	"%Z%%M%	%I%	%E% SMI"
31# # --------------------------------
32#
33# dec: DEC (DIGITAL EQUIPMENT CORPORATION)
34#
35# Manufacturer:	DEC (DIGITAL EQUIPTMENT CORP.)
36# Class:	II
37#
38# Info:
39#	Note that xenl glitch in vt100 is not quite the same as concept,
40#	since the cursor is left in a different position while in the
41#	weird state (concept at beginning of next line, vt100 at end
42#	of this line) so all versions of vi before 3.7 don't handle
43#	xenl right on vt100. The correct way to handle xenl is when
44#	you output the char in column 80, immediately output CR LF
45#	and then assume you are in column 1 of the next line. If xenl
46#	is on, am should be on too.
47#
48#	I assume you have smooth scroll off or are at a slow enough baud
49#	rate that it doesn't matter (1200? or less). Also this assumes
50#	that you set auto-nl to "on", if you set it off use vt100-nam
51#	below.
52#
53#	The padding requirements listed here are guesses. It is strongly
54#	recommended that xon/xoff be enabled, as this is assumed here.
55#
56#	The vt100 uses rs2 and rf rather than is2/tbc/hts because the
57#	tab settings are in non-volatile memory and don't need to be
58#	reset upon login. Also setting the number of columns glitches
59#	the screen annoyingly. You can type "reset" to get them set.
60#
61vt100|vt100-am|dec vt100 (w/advanced video),
62	mir, msgr, cr=^M, cud1=^J, ind=^J, bel=^G, cols#80, lines#24, it#8,
63	clear=\E[H\E[J$<50>, cub1=^H, am, cup=\E[%i%p1%d;%p2%dH$<5>,
64	cuf1=\E[C$<2>, cuu1=\E[A$<2>, el=\E[K$<3>, el1=\E[1K$<3>, ed=\E[J$<50>,
65	cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD, cuf=\E[%p1%dC,
66	smso=\E[1;7m$<2>, rmso=\E[m$<2>, smul=\E[4m$<2>, rmul=\E[m$<2>,
67	bold=\E[1m$<2>, rev=\E[7m$<2>, blink=\E[5m$<2>, sgr0=\E[m^O$<2>,
68	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
69	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smkx=\E[?1h\E=, rmkx=\E[?1l\E>,
70	enacs=\E(B\E)0, smacs=^N, rmacs=^O,
71	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
72	tbc=\E[3g, hts=\EH, home=\E[H, ht=^I, ri=\EM$<5>,
73	kcuu1=\EOA, kcud1=\EOB, kcuf1=\EOC, kcub1=\EOD, kbs=^H,
74
75# Info:
76# This is how the keypad gets assigned.
77#	PF1	  PF2	    PF3	      PF4
78	kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
79#	7	  8	     9	    '-' does not send anything on my terminal.
80	kf9=\EOw, kf10=\EOx, kf0=\EOy,
81#	4	  5	    6	      ,
82	kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
83#	1	  2	    3
84	ka1=\EOq, kb2=\EOr, ka3=\EOs,
85#	0	  .	    ENTER
86	kc1=\EOp, kc3=\EOn, kent=\EOM,
87#
88
89
90	vt#3, xenl, xon, sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
91vt100-nam|vt100 w/no am (w/advanced video),
92	am@, xenl@, use=vt100-am,
93# Info:
94#	Ordinary vt100 in 132 column ("wide") mode.
95#
96vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video),
97	cols#132, lines#24, rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am,
98vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video),
99	cols#132, lines#14, rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, vt@, use=vt100-nam,
100# Info:
101#	vt100's with no advanced video.
102#
103vt100-nav|vt100 without advanced video option,
104	sgr@, smso=\E[7m , rmso=\E[m , xmc#1,
105	smul@, rmul@, bold@, rev@, blink@, sgr0@, use=vt100,
106vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option),
107	lines#14, cols#132, use=vt100-nav,
108# Info:
109#	vt100's with one of the 24 lines used as a status line.
110#	We put the status line on the top.
111#
112vt100-s|vt100-s-top|vt100-top-s|vt100 for use with sysline,
113	lines#23, is2=\E7\E[2;24r\E8, clear=\E[2;1H\E[J$<50>, home=\E[2;1H,
114	dsl=\E7\E[1;24r\E8,
115	cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, csr=\E[%i%i%p1%d;%p2%dr,
116	hs, eslok, tsl=\E7\E[1;%p1%dH\E[1K, fsl=\E8, use=vt100-am,
117# Info:
118#	Status line at bottom.
119#	Clearing the screen will clobber status line.
120#
121vt100-s-bot|vt100-bot-s|vt100 for use with sysline,
122	lines#23, is2=\E[1;23r\E[23;1H, dsl=\E7\E[1;24r\E8,
123	hs, eslok, tsl=\E7\E[24;%p1%dH\E[1K, fsl=\E8, use=vt100-am,
124# vt 102
125vt102|vt-102|dec vt102,
126	xon,
127	cols#80, lines#24, vt#3,
128	bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
129	clear=\E[;H\E[2J$<50>, cnorm=\E[?7h, cr=\r,
130	csr=\E[%i%p1%d;%p2%dr, cub1=\b, cud1=\n,
131	cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
132	cuu1=\E[A$<2>, cvvis=\E[?7l, ed=\E[J$<50>,
133	el=\E[K$<3>, home=\E[H, ht=\t, ind=\n,
134	is2=\E[1;24r\E[24;1H, kbs=\b, kcub1=\EOD, kcud1=\EOB,
135	kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ, kf3=\EOR,
136	kf4=\EOS, rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>,
137	rmkx=\E[?1l\E>, rmso=\E[m$<2>, rmul=\E[m$<2>,
138	rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
139	sgr0=\E[m$<2>, smkx=\E[?1h\E=, smso=\E[7m$<2>,
140	smul=\E[4m$<2>,
141# Info:
142#	vt132 - like vt100 but slower and has ins/del line and such.
143#	I'm told that smir/rmir are backwards in the terminal from the
144#	manual and from the ANSI standard, this describes the actual
145#	terminal. I've never actually used a vt132 myself, so this
146#	is untested.
147#
148#	The smir/rmir are now reveresed (corrected)
149#
150vt132|DEC vt132,
151	il1=\E[L$<99>, dl1=\E[M$<99>, ip=$<7>, dch1=\E[P$<7>, rmir=\E[4l,
152	smir=\E[4h, xenl, ind=^J$<30>, use=vt100,
153# Info:
154#	Older DEC CRT's
155#
156vt50|dec vt50,
157	cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, ed=\EJ, el=\EK, clear=\EH\EJ,
158	cols#80, lines#12, cuf1=\EC, ht=^I, cuu1=\EA,
159vt50h|dec vt50h,
160	cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, ed=\EJ, el=\EK,
161	clear=\EH\EJ, cup=\EY%p1%' '%+%c%p2%' '%+%c, cols#80, lines#12,
162	cuf1=\EC, ht=^I, ri=\EI, cuu1=\EA,
163vt52|dec vt52,
164	cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, ed=\EJ, el=\EK,
165	clear=\EH\EJ, cup=\EY%p1%' '%+%c%p2%' '%+%c, cols#80, lines#24,
166	cuf1=\EC, ht=^I, it#8, ri=\EI, cuu1=\EA,
167	kcuu1=\EA, kcud1=\EB, kcuf1=\EC, kcub1=\ED, kbs=^H,
168# Info:
169#	A VT62 can be made to think that it is a VT61 by moving 6
170#	soldered-in jumpers on the i/o board.
171#	The keyboard must be relabeled, also.
172#
173vt61|vt-61|vt61.5|dec vt61,
174	cr=^M$<20>, cud1=^J, ind=^J$<20>, bel=^G, cub1=^H,
175	ed=\EJ$<120>, el=\EK$<70>, clear=\EH\EJ$<120>,
176	cup=\EY%p1%' '%+%c%p2%' '%+%c$<20>, cols#80, lines#24,
177	cuf1=\EC$<20>, ht=^I, ri=\E$<20>I, cuu1=\EA$<20>,
178	kcuu1=\EA, kcud1=\EB, kcuf1=\EC, kcub1=\ED,
179# Info:
180#	Graphics CRT's.
181#	clear screen also erases graphics
182#
183vt125|vt125 graphics terminal,
184	clear=\E[;H\E[2J\EPpS(E)\E\\$<50>, use=vt100,
185gt40|dec gt40,
186	cr=^M, cud1=^J, bel=^G,
187	cub1=^H, cols#72, lines#30, os,
188gt42|dec gt42,
189	cr=^M, cud1=^J, bel=^G,
190	cub1=^H, cols#72, lines#40, os,
191# Info:
192#	The gigi does standout with red!
193#
194gigi|vk100|dec gigi graphics terminal,
195	cr=^M, cud1=^J, ind=^J, bel=^G, cols#84, lines#24, am,
196	clear=\E[;H\E[2J, cub1=^H, cup=\E[%i%p1%d;%p2%dH, cuf1=\E[C,
197	cuu1=\E[A, el=\E[K, ed=\E[J, smso=\E[7;31m, rmso=\E[m,
198	smul=\E[4m, rmul=\E[m,
199	is2=\E>\E[?3l\E[?4l\E[?5l\E[?20l\E[?7h\E[?8h, smkx=\E[?1h\E=,
200	rmkx=\E[?1l\E>, kcuu1=\EOA,
201	kcud1=\EOB, kcuf1=\EOC, kcub1=\EOD, khome=\E[H, kf1=\EOP,
202	kf2=\EOQ, kf3=\EOR, kf4=\EOS, ht=^I, ri=\EM, xenl, cud=\E[%p1%dB,
203	cuu=\E[%p1%dA, cub=\E[%p2%dD, cuf=\E[%p1%dC,
204# Info:
205#	Hard copy (decwriter) dec terminals.
206#
207dw1|decwriter I,
208	cr=^M, cud1=^J, ind=^J, bel=^G,
209	cub1=^H, cols#72, hc, os,
210dw2|decwriter|dw|decwriter II,
211	cr=^M, cud1=^J, ind=^J, bel=^G, kbs=^H, cub1=^H, cols#132, hc, os,
212# Info:
213#	\E(B	Use U.S. character set (otherwise # => british pound !)
214#	\E[20l	Disable "linefeed newline" mode (otherwise puts \r after \n,\f,\(vt )
215#	\E[w	10 char/in pitch
216#	\E[1;132	full width horizontal margins
217#	\E[2g	clear all tab stops
218#	\E[z	6 lines/in
219#	\E[66t	66 lines/page (for \f)
220#	\E[1;66r	full vertical page can be printed
221#	\E[4g	clear vertical tab stops
222#	\E>	disable alternate keypad mode (so it transmits numbers!)
223#	\E[%i%du	set tab stop at column %d (origin == 1)
224#		(Full syntax is \E[n;n;n;n;n;...;nu where each 'n' is
225#		a tab stop)
226#
227#       The dw3 does standout with wide characters.
228#
229dw3|la120|decwriter III,
230	cr=^M, cud1=^J, ind=^J, bel=^G, kbs=^h, cub1=^H, cols#132, hc,
231	os, smso=\E[6w, rmso=\E[w, ht=^I,
232	is1=\E(B\E[20l\E[w\E[0;132s\E[2g\E[z\E[66t\E[1;66r\E[4g\E>,
233	is2=\E[9;17;25;33;41;49;57;65;73;81;89;97;105;113;121;129u\r,
234dw4|decwriter IV,
235	cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, cols#132, hc, os, am,
236	ht=^I, is2=\Ec, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS, kbs=^H,
237vt220|dec vt220 8 bit terminal,
238	am, mc5i, mir, msgr, xenl, xon,
239	cols#80, it#8, lines#24,
240	acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
241	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J,
242	cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\b,
243	cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
244	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
245	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
246	ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
247	enacs=\E)0, flash=\E[?5h$<200>\E[?5l, home=\E[H,
248	ht=\t, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
249	ind=\ED, is2=\E[?7h\E[>\E[?1h\E\sF\E[?4l, kbs=\b,
250	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
251	kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
252	kf13=\E[25~, kf14=\E[26~, kf17=\E[31~, kf18=\E[32~,
253	kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR,
254	kf4=\EOS, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
255	kf9=\E[20~, kfnd=\E[1~, khlp=\E[28~, kich1=\E[2~,
256	knp=\E[6~, kpp=\E[5~, krdo=\E[29~, kslt=\E[4~,
257	lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[i,
258	mc4=\E[4i, mc5=\E[5i, nel=\EE, rc=\E8, rev=\E[7m,
259	ri=\EM, rmacs=^O, rmam=\E[?7l, rmir=\E[4l,
260	rmso=\E[27m, rmul=\E[24m, rs1=\E[?3l, sc=\E7,
261	sgr0=\E[0m, smacs=^N, smam=\E[?7h, smir=\E[4h,
262	smso=\E[7m, smul=\E[4m, tbc=\E[3g,
263	sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
264
265