author | blu |
Mon, 15 Oct 2007 09:07:34 -0700 | |
changeset 5259 | ba90e9432b31 |
parent 0 | 68f95e015346 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5259
ba90e9432b31
6569261 xterm, xtermc, xterm-color: smcup/rmcup definitions are incorrect/missing
blu
parents:
0
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
ba90e9432b31
6569261 xterm, xtermc, xterm-color: smcup/rmcup definitions are incorrect/missing
blu
parents:
0
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
0 | 7 |
# |
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T |
|
22 |
# All Rights Reserved |
|
5259
ba90e9432b31
6569261 xterm, xtermc, xterm-color: smcup/rmcup definitions are incorrect/missing
blu
parents:
0
diff
changeset
|
23 |
# |
ba90e9432b31
6569261 xterm, xtermc, xterm-color: smcup/rmcup definitions are incorrect/missing
blu
parents:
0
diff
changeset
|
24 |
# Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
ba90e9432b31
6569261 xterm, xtermc, xterm-color: smcup/rmcup definitions are incorrect/missing
blu
parents:
0
diff
changeset
|
25 |
# Use is subject to license terms. |
ba90e9432b31
6569261 xterm, xtermc, xterm-color: smcup/rmcup definitions are incorrect/missing
blu
parents:
0
diff
changeset
|
26 |
# |
0 | 27 |
|
28 |
#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.15 */ |
|
29 |
# # PC - Personal Computers and Workstations emulating terminals. |
|
30 |
# |
|
31 |
# Manufacturer: PERSONAL COMPUTER TERMINALS |
|
32 |
# Class: III |
|
33 |
# |
|
34 |
# Info: |
|
35 |
# This category is strange. The typical personal computer offers |
|
36 |
# a program to emulate a "terminal" without documenting any |
|
37 |
# escape sequences. |
|
38 |
# |
|
39 |
# I don't have any direct personal experience with these, but |
|
40 |
# my impression is that the terminal emulator emulates an |
|
41 |
# ultra-dumb terminal, with the cursor cemented to the bottom |
|
42 |
# line, and no escape sequences. |
|
43 |
# |
|
44 |
# Many of the entries below were found in random places with |
|
45 |
# no indication of who they came from or how. In many cases, I |
|
46 |
# believe what has happened is that someone wrote their own |
|
47 |
# terminal emulator program, which understood some control |
|
48 |
# characters or escape sequences, and made their own entries. |
|
49 |
# |
|
50 |
# GENERIC PERSONAL COMPUTER |
|
51 |
# |
|
52 |
pc|any personal computer emulating a terminal, |
|
53 |
am, |
|
54 |
cols#40, |
|
55 |
bel=^G, cr=\r, cud1=\n, ind=\n, |
|
56 |
apple-soroc|apple emulating soroc 120, |
|
57 |
am, |
|
58 |
cols#80, lines#24, |
|
59 |
bel=^G, clear=\E*$<300>, cr=\r, cub1=\b, cud1=\n, |
|
60 |
cuf1=\f, cup=\E=%p1%'\s'%+%c%p2%'\s'%+%c, cuu1=^K, |
|
61 |
ed=\EY, el=\ET, home=^^, ind=\n, kcub1=\b, kcud1=\n, |
|
62 |
kcuf1=\f, kcuu1=^K, |
|
63 |
# Info: |
|
64 |
# For those of you with either Programma's Pie or Hayden's Pie, |
|
65 |
# I'm including a patch for DOS which allows them to function |
|
66 |
# interactively as a terminal, with data transfer. |
|
67 |
# |
|
68 |
# The following termcap entry works only with an Apple ][+ that is |
|
69 |
# equipped with a Videx 80 collumn card in slot 3. A special |
|
70 |
# routine must be installed at the apple end to enable scroll |
|
71 |
# down, here indicated with a ^U. The Videx card must have |
|
72 |
# inverse char set. |
|
73 |
# |
|
74 |
apple|apple-v80|Apple][+ w/Videx80 & custom scroll down, |
|
75 |
cr=^M, cud1=^J, ind=^J, bel=^G, cols#80, lines#24, cub1=^H$<10>, |
|
76 |
smacs=^z2, rmacs=^z3, cup=\015\036%r%p1%' '%+%c%p2%' '%+%c$<6>, |
|
77 |
el=\035$<6>, home=\031$<50>, smso=^z3, rmso=^z2, |
|
78 |
cuf1=\034, cud1=\012, cuu1=\037, clear=\014$<40*>, |
|
79 |
xenl, am, ri=\020, ed=\013$<20*>, |
|
80 |
# Info: |
|
81 |
# -------------------------------------------------------------- |
|
82 |
# |
|
83 |
# Pieterm is written using Lisa 2.5. If any of the opcodes used |
|
84 |
# are confusing, refer to hex values in the left most column. |
|
85 |
# |
|
86 |
# |
|
87 |
# 1 TTL "PIETERM 1.0 |
|
88 |
# 2 NLS |
|
89 |
# 3 ; |
|
90 |
# 4 ; PIETERM: A program which patches 48k DOS 3.3 to allow |
|
91 |
# 5 ; Programma Pie, and Hayden Pie to function in |
|
92 |
# 6 ; a terminal mode. |
|
93 |
# 7 ; |
|
94 |
# 8 ; ASSUMES: Videx 80 collumn Videoterm in slot 3. |
|
95 |
# 9 ; 1200 baud Serial Card in slot 2. |
|
96 |
# 10 ; DOS 3.3 unmodified at $9D00 (master or slave) |
|
97 |
# 11 ; |
|
98 |
# 12 ; TO USE: Either from the Command level of Pie, or in a |
|
99 |
# 13 ; "HELLO" program, "BRUN PIETERM,A$6000". |
|
100 |
# 14 ; To enter terminal mode, from the Command level |
|
101 |
# 15 ; of Pie, enter "TERM" or "TERM ". |
|
102 |
# 16 ; "TERM" Sends a carriage return before entering terminal |
|
103 |
# 17 ; mode. Best for reentering csh. |
|
104 |
# 18 ; "TERM " Sends a ^D character before entering |
|
105 |
# 19 ; terminal mode. For example, "TERM " should be |
|
106 |
# 20 ; entered if returning to a cat>filename. |
|
107 |
# 21 ; |
|
108 |
# 22 ; RETURN: To return to the command level of Pie from the |
|
109 |
# 23 ; terminal mode, enter "^@". With an upper case |
|
110 |
# 24 ; locked keyboard, that is control-shift-P. With |
|
111 |
# 25 ; and Enhanser II lower case keyboard, that is ^0. |
|
112 |
# 26 ; |
|
113 |
# 27 ; SENDING: From the Command level of Pie, indicated by |
|
114 |
# 28 ; "Command:" (csh indicated by %), enter: |
|
115 |
# 29 ; |
|
116 |
# 30 ; Command:TERM |
|
117 |
# 31 ; % stty -echo;cat>filename;stty echo |
|
118 |
# 32 ; % ^@ |
|
119 |
# 33 ; Command:>#2 |
|
120 |
# 34 ; Command:TERM |
|
121 |
# 35 ; ^__space |
|
122 |
# 36 ; |
|
123 |
# 37 ; RECEIVING: % wc filename |
|
124 |
# 38 ; 46 123 4567 filename |
|
125 |
# 39 ; % sleep 20;cat filename |
|
126 |
# 40 ; ^@ |
|
127 |
# 41 ; Command:(1,46)<#2 |
|
128 |
# 42 ; |
|
129 |
# 43 ; BUGS: Extra linefeeds are sent both ways. A filter program |
|
130 |
# 44 ; at the UN*X end is required to strip every other \n. |
|
131 |
# 45 ; Arg "^J" Arg "" ^W^X will globally illiminate them |
|
132 |
# 46 ; within Pie. |
|
133 |
# 47 ; |
|
134 |
# 48 ; Since the Patch program overwrites the INIT portion |
|
135 |
# 49 ; of DOS, it must be brun every boot. A zap utility |
|
136 |
# 50 ; may be used to modify DOS directly on the disk. |
|
137 |
# 51 ; |
|
138 |
# 52 ; Pie gives no indication of what is going on. This |
|
139 |
# 53 ; takes a little getting used to. It is possible to |
|
140 |
# 54 ; get so involved with what you are doing in Pie, that |
|
141 |
# 55 ; you forget you are logged on. |
|
142 |
# 56 ; |
|
143 |
# 57 ; Because of the limitation of Pie's buffer, large |
|
144 |
# 58 ; file need to be transfered in chunks. |
|
145 |
# 59 ; |
|
146 |
# 60 ; -------------------------------- |
|
147 |
# 61 ; |
|
148 |
# 62 ; |
|
149 |
# 0800 63 ; |
|
150 |
# 06F8 64 NO EQU $6F8 ; address specific to videx |
|
151 |
# 0638 65 START EQU NO-$C0 ; card in slot 3. See |
|
152 |
# C080 66 DEV0 EQU $C080 ; reference manual. |
|
153 |
# C081 67 DEV1 EQU $C081 |
|
154 |
# 03B8 68 BASEL EQU $478-$C0 |
|
155 |
# CA2E 69 BASCLC1 EQU $CA2E |
|
156 |
# 0438 70 BASEH EQU $4F8-$C0 |
|
157 |
# 0800 71 ; |
|
158 |
# C0AE 72 STATUS EQU $C0AE ; Serial card specific to |
|
159 |
# C0AF 73 DATAPORT EQU $C0AF ; slot 2. Adjust as needed. |
|
160 |
# 0800 74 ; |
|
161 |
# FDED 75 COUT EQU $FDED ; Stdout |
|
162 |
# 0800 76 ; |
|
163 |
# A884 77 PUTNAME EQU $A884 ; DOS patch addresses |
|
164 |
# A909 78 PUTTOKEN EQU $A909 |
|
165 |
# 9D1E 79 PUTADR EQU $9D1E |
|
166 |
# AE8E 80 PUTPATCH EQU $AE8E |
|
167 |
# 0800 81 ; |
|
168 |
# 6000 82 ORG $6000 |
|
169 |
# 6000 83 OBJ $800 |
|
170 |
# 6000 84 ; |
|
171 |
# 6000 4C 0B 60 85 JMP MAIN |
|
172 |
# 6003 86 ; |
|
173 |
# 6003 54 45 52 87 NAME DCI 'TERM' ; hi-bit off except last |
|
174 |
# 6006 CD |
|
175 |
# 6007 40 70 88 TOKEN HEX 4070 ; need-filename optional |
|
176 |
# 6009 8D AE 89 ADRESS ADR PUTPATCH-1 |
|
177 |
# 600B 90 ; |
|
178 |
# 600B 91 MAIN: |
|
179 |
# 600B A2 04 92 LDX 4 |
|
180 |
# 600D BD 02 60 93 ^1 LDA NAME-1,X |
|
181 |
# 6010 9D 83 A8 94 STA PUTNAME-1,X |
|
182 |
# 6013 CA 95 DEX |
|
183 |
# 6014 D0 F7 96 BNE <1 |
|
184 |
# 6016 E8 97 INX |
|
185 |
# 6017 BD 07 60 98 ^2 LDA TOKEN,X |
|
186 |
# 601A 9D 09 A9 99 STA PUTTOKEN,X |
|
187 |
# 601D BD 09 60 100 LDA ADRESS,X |
|
188 |
# 6020 9D 1E 9D 101 STA PUTADR,X |
|
189 |
# 6023 CA 102 DEX |
|
190 |
# 6024 10 F1 103 BPL <2 |
|
191 |
# 6026 A2 73 104 LDX #ENDPATCH-PATCH+1 |
|
192 |
# 6028 BD 32 60 105 ^3 LDA PATCH,X |
|
193 |
# 602B 9D 8E AE 106 STA PUTPATCH,X |
|
194 |
# 602E CA 107 DEX |
|
195 |
# 602F 10 F7 108 BPL <3 |
|
196 |
# 6031 60 109 RTS |
|
197 |
# 6032 110 ; |
|
198 |
# 6032 111 PATCH: |
|
199 |
# 6032 112 PHS PUTPATCH |
|
200 |
# AE8E 113 ; |
|
201 |
# AE8E A2 8D 114 LDX #$8D |
|
202 |
# AE90 AD 04 02 115 LDA INBUFF+4 |
|
203 |
# AE93 C9 A0 116 CMP #" " |
|
204 |
# AE95 D0 02 117 BNE >0 |
|
205 |
# AE97 A2 84 118 LDX #$84 |
|
206 |
# AE99 8A 119 ^0 TXA |
|
207 |
# AE9A 4C BD AE 120 JMP SENDIT |
|
208 |
# AE9D AD AE C0 121 RECEIVE LDA STATUS |
|
209 |
# AEA0 29 01 122 AND #$01 |
|
210 |
# AEA2 F0 0C 123 BEQ SEND |
|
211 |
# AEA4 AD AF C0 124 LDA DATAPORT |
|
212 |
# AEA7 29 7F 125 AND #$7F |
|
213 |
# AEA9 C9 10 126 CMP #$10 |
|
214 |
# AEAB F0 1F 127 BEQ SCROLLD |
|
215 |
# AEAD 20 ED FD 128 PRINTIT JSR COUT |
|
216 |
# AEB0 AD 00 C0 129 SEND LDA $C000 |
|
217 |
# AEB3 10 E8 130 BPL RECEIVE |
|
218 |
# AEB5 8D 10 C0 131 STA $C010 |
|
219 |
# AEB8 29 7F 132 AND #$7F |
|
220 |
# AEBA D0 01 133 BNE SENDIT |
|
221 |
# AEBC 60 134 RTS |
|
222 |
# AEBD 48 135 SENDIT PHA |
|
223 |
# AEBE AD AE C0 136 S0 LDA STATUS |
|
224 |
# AEC1 29 02 137 AND #$02 |
|
225 |
# AEC3 F0 F9 138 BEQ S0 |
|
226 |
# AEC5 68 139 PLA |
|
227 |
# AEC6 8D AF C0 140 STA DATAPORT |
|
228 |
# AEC9 4C 9D AE 141 JMP RECEIVE |
|
229 |
# AECC 38 142 SCROLLD SEC |
|
230 |
# AECD A2 C3 143 LDX #$C3 ; for slot 3 |
|
231 |
# AECF AC F8 06 144 LDY NO |
|
232 |
# AED2 BD 38 06 145 LDA START,X |
|
233 |
# AED5 E9 05 146 SBC #$05 |
|
234 |
# AED7 29 7F 147 AND #$7F |
|
235 |
# AED9 9D 38 06 148 STA START,X |
|
236 |
# AEDC 20 2E CA 149 JSR BASCLC1 |
|
237 |
# AEDF A9 0D 150 LDA #$0D |
|
238 |
# AEE1 99 80 C0 151 STA DEV0,Y |
|
239 |
# AEE4 BD B8 03 152 LDA BASEL,X |
|
240 |
# AEE7 99 81 C0 153 STA DEV1,Y |
|
241 |
# AEEA A9 0C 154 LDA #$0C |
|
242 |
# AEEC 99 80 C0 155 STA DEV0,Y |
|
243 |
# AEEF BD 38 04 156 LDA BASEH,X |
|
244 |
# AEF2 99 81 C0 157 STA DEV1,Y |
|
245 |
# AEF5 A9 19 158 LDA #$19 ; home cursor |
|
246 |
# AEF7 20 ED FD 159 JSR COUT |
|
247 |
# AEFA A9 1D 160 LDA #$1D ; ceol |
|
248 |
# AEFC 20 ED FD 161 JSR COUT |
|
249 |
# AEFF 4C 9D AE 162 JMP RECEIVE |
|
250 |
# AF02 163 ; |
|
251 |
# AF02 164 DPH |
|
252 |
# 60A6 165 ORG $6000+*-$800 |
|
253 |
# 60A6 166 OBJ * |
|
254 |
# 60A6 167 ; |
|
255 |
# 60A6 168 ENDPATCH: |
|
256 |
# 60A6 169 END |
|
257 |
# ATT |
|
258 |
# |
|
259 |
# Info: |
|
260 |
# The official PC terminal emulator program of the AT&T Product |
|
261 |
# Centers. |
|
262 |
# |
|
263 |
# Note - insert mode commented out - doesn't seem to work on |
|
264 |
# AT&T PC. |
|
265 |
# |
|
266 |
simterm|attpc running simterm, |
|
267 |
am, |
|
268 |
cols#80, lines#24, |
|
269 |
bel=^G, clear=\EH\EJ, cr=\r, cub1=\b, cud1=\EB, |
|
270 |
cuf1=\EC, cup=\E=%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, |
|
271 |
dch1=\ER, dl1=\EM, ed=\EJ, el=\EK, home=\EH, il1=\EL, |
|
272 |
ind=\n, rmcup=\EVE, .rmir=\EE, .rmso=\E&d@, smcup=\EVS, |
|
273 |
smir=\EQ, smso=\E&dB, |
|
274 |
# Info: |
|
275 |
# |
|
276 |
vic20|vic|vic Personal Computer, |
|
277 |
cr=^M, cud1=^J, ind=^J, bel=^G, am, clear=^K^L, home=^L, |
|
278 |
lines#20, cuu1=^^, cuf1=^\, cols#22, |
|
279 |
# Info: |
|
280 |
# (Dan Ingold) |
|
281 |
# |
|
282 |
# Following is a TERMCAP entry for the Datapoint UNITRM18 |
|
283 |
# asynchronous terminal emulation program. It has only been |
|
284 |
# tested out at 1200 baud, however, so I don't know if the |
|
285 |
# delays are correct. |
|
286 |
# |
|
287 |
# [what is control "="? keys send different codes from functions? - mrh] |
|
288 |
# |
|
289 |
unitrm18|datapoint 'UNITRM18' terminal emulator, |
|
290 |
cr=^M, ind=^J, cud1=^J, bel=^G, am, cub1=^y, |
|
291 |
ed=^?, el=^>, clear=^=^?$<12.5>, cols#80, cud1=^k, home=^=, |
|
292 |
kcuu1=^x, kcud1=^r, kcub1=^t, kcuf1=^v, lines#24, cuf1=^x, cuu1=^z, |
|
293 |
# Info: |
|
294 |
# FLORIDA COMPUTER GRAPHICS |
|
295 |
# Florida Computer Graphics Beacon System, using terminal emulator |
|
296 |
# program "host.com", as provided by FCG. Entry provided by |
|
297 |
# David Bryant (cbosg!djb) 1/7/83. |
|
298 |
# This description is for an early release of the "host" program. |
|
299 |
# Known bug: ed clears the whole screen, so it's commented out. |
|
300 |
# |
|
301 |
beacon|FCG Beacon System, |
|
302 |
cr=^M, cud1=^J, ind=^J, cols#80, lines#32, clear=\EZ$<10>, |
|
303 |
cub1=^H, cup=\E=%p1%' '%+%c%p2%' '%+%c$<20>, cuf1=\EV, cuu1=\EU, el=\ET, |
|
304 |
.ed=\EY, dch1=\EW, ich1=\EQ, dl1=\ER, il1=\EE, |
|
305 |
smcup=\ESTART^M\E2\0540^M\E12^M\EEND^M$<10>, |
|
306 |
bel=\ESTART^M\E37^M\EEND^M$<1>, home=\EH$<10>, |
|
307 |
am, da, db, |
|
308 |
rev=\ESTART^M\E59\0541^M\EEND^M, |
|
309 |
smso=\ESTART^M\E70\0546^M\EEND^M$<20>, |
|
310 |
rmso=\ESTART^M\E70\0540^M\EEND^M$<20>, |
|
311 |
smul=\ESTART^M\E60\0541^M\EEND^M, |
|
312 |
rmul=\ESTART^M\E60\0540^M\EEND^M, |
|
313 |
blink=\ESTART^M\E61\0541^M\EEND^M, |
|
314 |
sgr0=\ESTART^M\E78^M\E70\0540^M\EEND^M$<20>, |
|
315 |
# Info: |
|
316 |
# This doesn't work because the cursor position isn't saved |
|
317 |
# with the window. |
|
318 |
# |
|
319 |
beacon-s|FCG Beacon System with status line, |
|
320 |
lines#31, eslok, hs, |
|
321 |
tsl=\ESTART^M\E45\0541^M\E41\054%p1%d\0541^M\EEND^M$<10>, |
|
322 |
fsl=\ESTART^M\E45\0540^M\EEND^M$<10>, |
|
323 |
is2=\ESTART^M\E45\0540^M\E65\05431^M\E66\05445^M\E45\0541^M\E65\0541^M\E66\0541^M\E45\0540^M\EEND^M$<30>, |
|
324 |
use=beacon, |
|
325 |
# Info: |
|
326 |
# Here is the xtalk termcap. I mostly use the terminfo (curses) |
|
327 |
# version myself since I am working at BTL where they have a |
|
328 |
# certain bias. I am sending the terminfo version too, so that |
|
329 |
# you can compare them if there are any undiscovered glitches |
|
330 |
# in the termcap version due to insufficient testing. |
|
331 |
# |
|
332 |
# First the termcap version -- |
|
333 |
# |
|
334 |
# d0|vt100|vt100-am|vt100|dec vt100:\ |
|
335 |
# :cr=^M:do=^J:nl=^J:bl=^G:co#80:li#24:cl=50\E[;H\E[2J:\ |
|
336 |
# :le=^H:bs:am:cm=5\E[i2252;787036H:nd=2\E[C:up=2\E[A:\ |
|
337 |
# :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\ |
|
338 |
# :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\ |
|
339 |
# :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\ |
|
340 |
# :rf=/usr/share/lib/tabset/vt100:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\ |
|
341 |
# :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:ta=^I:pt:sr=5\EM:vt#3:xn:\ |
|
342 |
# :sc=\E7:rc=\E8:cs=\E[i2252;787036r: |
|
343 |
# d1|xtalk|IBM PC with xtalk:\ |
|
344 |
# :sc@:rc@:cs@:am@:xn@:al=99\E[L:dl=99\E[M:tc=vt100-am: |
|
345 |
# |
|
346 |
# The problem is in the "xtalk" entry. The "am" auto-margin |
|
347 |
# flag should not be turned off as shown above. The following |
|
348 |
# is the corrected "xtalk" entry. |
|
349 |
# |
|
350 |
# d1|xtalk|IBM PC with xtalk:\ |
|
351 |
# :sc@:rc@:cs@:xn@:al=99\E[L:dl=99\E[M:tc=vt100-am: |
|
352 |
# |
|
353 |
# This is the shell script that I execute from my profile when I |
|
354 |
# login from xtalk -- |
|
355 |
# |
|
356 |
# # set auto margins |
|
357 |
# echo '\033[?7h\c' |
|
358 |
# #set up tab stops |
|
359 |
# stty -tabs |
|
360 |
# echo '\033[3g' |
|
361 |
# for i in 1 2 3 4 5 6 7 8 9 |
|
362 |
# do |
|
363 |
# echo ' \033H\c' |
|
364 |
# done |
|
365 |
# stty tabs |
|
366 |
# echo |
|
367 |
# |
|
368 |
# |
|
369 |
# Now the terminfo version (This is the input to the 'tic' |
|
370 |
# compiler) -- |
|
371 |
# |
|
372 |
# Vanilla vt100 definitions. |
|
373 |
# vt100|vt100-am|dec vt100, |
|
374 |
# cr=^M, cud1=^J, ind=^J, bel=^G, cols#80, lines#24, it#8, |
|
375 |
# clear=\E[H\E[2J$<50>, cub1=^H, am, cup=\E[ip12252;p2787036H$<5>, |
|
376 |
# cuf1=\E[C$<2>, cuu1=\E[A$<2>, el=\E[K$<3>, ed=\E[J$<50>, |
|
377 |
# cud=\E[p12252B, cuu=\E[p1787036A, cub=\E[p1787088D, cuf=\E[p1787036C, |
|
378 |
# smso=\E[7m$<2>, rmso=\E[m$<2>, smul=\E[4m$<2>, rmul=\E[m$<2>, |
|
379 |
# bold=\E[1m$<2>, rev=\E[7m$<2>, blink=\E[5m$<2>, sgr0=\E[m$<2>, |
|
380 |
# sgr=\E[?p1t;7;?p2t;4;?p3t;7;?p4t;5;?p6t;1;m, |
|
381 |
# rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smkx=\E[?1h\E=, rmkx=\E[?1l\E>, |
|
382 |
# tbc=\E[3g, hts=\EH, home=\E[H, |
|
383 |
# kcuu1=\EOA, kcud1=\EOB, kcuf1=\EOC, kcub1=\EOD, kbs=^H, |
|
384 |
# kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, ht=^I, ri=\EM$<5>, |
|
385 |
# vt#3, xenl, xon, sc=\E7, rc=\E8, csr=\E[ip12252;p2787036r, |
|
386 |
# |
|
387 |
# |
|
388 |
# ibm xtalk terminal simulator -- similar to but dumber than |
|
389 |
# vanilla vt100 |
|
390 |
# Enjoy! |
|
391 |
# Rick Thomas |
|
392 |
# ihnp4!btlunix!rbt |
|
393 |
# (201)-522-6062 |
|
394 |
# |
|
395 |
# PS -- I just got word that there is a new revision of xtalk |
|
396 |
# (3.5 I think they said) that is supposed to fix the vt100 |
|
397 |
# emulation problems. |
|
398 |
# |
|
399 |
xtalk|IBM PC with xtalk communication program, |
|
400 |
am, mir, msgr, xon, |
|
401 |
cols#80, it#8, lines#24, vt#3, xmc#1, |
|
402 |
acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, |
|
403 |
bel=^G, clear=\E[H\E[J$<50>, cr=\r, cub=\E[%p1%dD, |
|
404 |
cub1=\b, cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, |
|
405 |
cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>, |
|
406 |
cuu=\E[%p1%dA, cuu1=\E[A$<2>, dl1=\E[M$<99>, |
|
407 |
ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>, |
|
408 |
enacs=\E(B\E)0, home=\E[H, ht=\t, hts=\EH, |
|
409 |
il1=\E[L$<99>, ind=\n, ka1=\EOq, ka3=\EOs, kb2=\EOr, |
|
410 |
kbs=\b, kc1=\EOp, kc3=\EOn, kcub1=\EOD, kcud1=\EOB, |
|
411 |
kcuf1=\EOC, kcuu1=\EOA, kent=\EOM, kf0=\EOy, kf1=\EOP, |
|
412 |
kf10=\EOx, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOt, |
|
413 |
kf6=\EOu, kf7=\EOv, kf8=\EOl, kf9=\EOw, ri=\EM$<5>, |
|
414 |
rmacs=^O, rmkx=\E[?1l\E>, rmso=\E[m\s, |
|
415 |
rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smacs=^N, |
|
416 |
smkx=\E[?1h\E=, smso=\E[7m\s, tbc=\E[3g, |
|
417 |
# |
|
418 |
# Info: |
|
419 |
# \EI gets you out of inverse video mode. |
|
420 |
# |
|
421 |
# Info: |
|
422 |
# IBM |
|
423 |
# Thu May 5 19:35:27 1983 |
|
424 |
# |
|
425 |
ibmpc|ibm-pc|ibm5051|5051|IBM Personal Computer, |
|
426 |
cud1=^J, ind=^J$<10>, bel=^G, smir=\200R, am, cub1=^], |
|
427 |
kcud1=^_, clear=^L^K, cr=^M^^, home=^K, lines#24, cuu1=^^, |
|
428 |
cuf1=^\, cols#80, |
|
429 |
# Info: |
|
430 |
# According to the Coherent 2.3 manual, the PC console is similar |
|
431 |
# to a z19. The differences seem to be (1) 25 lines, (2) no status |
|
432 |
# line, (3) standout is broken, (4) ins/del line is broken, (5) |
|
433 |
# has blinking and bold. |
|
434 |
# |
|
435 |
pc-coherent|pcz19|coherent|IBM PC console running Coherent, |
|
436 |
cr=^M, cud1=^J, ind=^J, bel=^G, .il1=\EL$<1*>, am, cub1=^H, |
|
437 |
ed=\EJ, el=\EK, clear=\EE, cup=\EY%p1%' '%+%c%p2%' '%+%c, cols#80, |
|
438 |
dch1=\EN, .dl1=\EM$<1*>, cud1=\EB, rmir=\EO, home=\EH, smir=\E@, |
|
439 |
lines#25, mir, cuf1=\EC, ht=^I, it#8, |
|
440 |
ri=\EI, rmso=\Eq, smso=\Ep, cuu1=\EA, |
|
441 |
kbs=^h, kcuu1=\EA, kcud1=\EB, kcub1=\ED, kcuf1=\EC, khome=\EH, |
|
442 |
# Info: |
|
443 |
# According to the Venix 1.1 manual, the PC console is similar |
|
444 |
# to a DEC vt52. Differences seem to be (1) arrow keys send |
|
445 |
# different strings, (2) enhanced standout, (3) added |
|
446 |
# insert/delete line. |
|
447 |
# |
|
448 |
# Note in particular that it doesn't have automatic margins (ick). |
|
449 |
# There are other keys (f1-f10, pgup, pgdn, backtab, insch,delch) |
|
450 |
# which I don't have time to add now. |
|
451 |
# |
|
452 |
pc-venix|venix|IBM PC console running Venix, |
|
453 |
cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, ed=\EJ, el=\EK, |
|
454 |
clear=\EH\EJ, cup=\EY%p1%' '%+%c%p2%' '%+%c, cols#80, lines#25, |
|
455 |
cuf1=\EC, ht=^I, it#8, ri=\EI, cuu1=\EA, |
|
456 |
kcuu1=\EH, kcud1=\EP, kcuf1=\EM, kcub1=\EK, kbs=^H, |
|
457 |
il1=\EL, dl1=\EM, khome=\EG, |
|
458 |
ibm|ibm3101|3101|i3101|IBM 3101-10, |
|
459 |
am, |
|
460 |
cols#80, lines#24, |
|
461 |
bel=^G, clear=\EK, cr=\r, cub1=\b, cud1=\n, cuf1=\EC, |
|
462 |
cup=\EY%p1%'\s'%+%c%p2%'\s'%+%c, cuu1=\EA, ed=\EJ, |
|
463 |
el=\EI, home=\EH, ht=\t, hts=\E0, tbc=\EH, |
|
464 |
ind=\n, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, |
|
465 |
ibm-system1|system1|ibm system/1 computer, |
|
466 |
ind=^J, bel=^G, xt, am, cub1=^H, |
|
467 |
cup=^E%p1%' '%+%c%p2%' '%+%c, clear=^Z, |
|
468 |
cols#80, home=^K, lines#24, cuf1=^\, cuu1=^^, |
|
469 |
megatek|Pegasus Work Station Terminal Emulator, |
|
470 |
cols#83, lines#60, os, am, |
|
471 |
# Info: |
|
472 |
# sol and Microkit are for Corey - 6/11/82 - NS |
|
473 |
# |
|
474 |
microkit|mkt|microkit terminal computer, |
|
475 |
cr=^M, ind=^J, cud1=^J, bel=^G, |
|
476 |
il1=\El, am, cub1=^H, ed=\Ej, el=\Ek, clear=\Ee, |
|
477 |
cup=\Ey%p1%' '%+%c%p2%' '%+%c, cols#40, dch1=\En, dl1=\Em, |
|
478 |
rmir=\Eo, home=\Eh, smir=\E@, lines#23, mir, |
|
479 |
cuf1=\Ec, cuu1=\Ea, ht=^I, cvvis=^N^Lzv, cnorm=\Ex, |
|
480 |
kcuu1=\Eu, kcud1=\Ed, kcub1=\El, kcuf1=\Er, khome=\Eh, xenl, |
|
481 |
# Info: |
|
482 |
# OSBORNE |
|
483 |
# Thu Jul 7 03:55:16 1983 |
|
484 |
# |
|
485 |
# As an aside, be careful; it may sound like an anomaly on the |
|
486 |
# Osborne, but with the 80-column upgrade, it's too easy to |
|
487 |
# enter lines >80 columns! |
|
488 |
# |
|
489 |
# I've already had several comments... |
|
490 |
# The Osborne-1 with the 80-col option is capable of being |
|
491 |
# 52,80, or 104 characters wide; default to 80 for compatibility |
|
492 |
# with most systems. |
|
493 |
# |
|
494 |
# The tab is destructive on the Ozzie; make sure to 'stty -tabs'. |
|
495 |
# |
|
496 |
ozzie|osborne|osborne1|osborne 1, |
|
497 |
cr=^M, cud1=^J, ind=^J, bel=^G, il1=\EE, cub1=^H, el=\ET, |
|
498 |
cup=\E=%p1%' '%+%c%p2%' '%+%c, clear=^Z, cols#104, dch1=\EW, dl1=\ER, |
|
499 |
kcuu1=^K, kcud1=^J, kcub1=^H, kcuf1=^L, cud1=^J, cuf1=^L, |
|
500 |
ich1=\EQ, lines#24, cuu1=^K, msgr, smso=\E), rmso=\E(, |
|
501 |
ul, smul=\El, rmul=\Em, xt, |
|
502 |
# Info: |
|
503 |
# SOL |
|
504 |
# I don't know which, if either, of these sol's to believe. |
|
505 |
# ^S is an arrow key! |
|
506 |
# |
|
507 |
sol|sol1|, |
|
508 |
cr=^M, cud1=^J, ind=^J, bel=^G, am, cub1=^H, cup=\E^1%p1%c\E^2%p2%c, |
|
509 |
clear=^K, home=^N, cols#64, lines#16, cuf1=^S, cuu1=^W, |
|
510 |
kcub1=^A, kcuf1=^S, kcuu1=^W, kcud1=^Z, |
|
511 |
# Info: |
|
512 |
# sol and Microkit are for Corey - 6/11/82 - NS |
|
513 |
# |
|
514 |
sol2|sol terminal computer, |
|
515 |
cr=^M, ind=^J$<20>, cud1=^J, bel=^G, |
|
516 |
il1=20\EL, am, cub1=^H, ed=20\EJ, el=\EK, clear=20\EE, |
|
517 |
cup=\EY%p1%' '%+%c%p2%' '%+%c, cols#64, dch1=\EN, dl1=20\EM, |
|
518 |
rmir=\EO, home=\EH, smir=\E@, lines#16, mir, cuf1=\EC, |
|
519 |
cuu1=\EA, ht=^I, cvvis=^N^Lv, cnorm=\EX, |
|
520 |
kcuu1=\EU, kcud1=\ED, kcub1=\EL, kcuf1=\ER, khome=\EH, xenl, |
|
521 |
# Info: |
|
522 |
# SUN |
|
523 |
# smcup/rmcup control # lines scrolled on linefeed. The sun 2 |
|
524 |
# seems to handle this well with it set to 1, so both force this. |
|
525 |
# rmcup could use 0 or 3 just as well, I suppose. |
|
526 |
# |
|
527 |
sun|sun1|sun2|Sun Microsystems Inc. workstation, |
|
528 |
cr=^M, cud1=^J, ind=^J, bel=^G, am, km, cub1=^H, clear=^L, |
|
529 |
lines#34, cols#80, cup=\E[%i%p1%d;%p2%dH, cuf1=\E[C, cuu1=\E[A, |
|
530 |
el=\E[K, ed=\E[J, il=\E[%p1%dL, dl=\E[%p1%dM, ich=\E[%p1%d@, |
|
531 |
dch=\E[%p1%dP, kcub1=\E[D, kcud1=\E[B, kcuu1=\E[A, kcuf1=\E[C, |
|
532 |
kf1=\E[224z, kf2=\E[225z, kf3=\E[226z, kf4=\E[227z, |
|
533 |
kf5=\E[228z, kf6=\E[229z, kf7=\E[230z, kf8=\E[231z, |
|
534 |
kf9=\E[232z, ht=^I, il1=\E[L, dl1=\E[M, rs2=\E[s, |
|
535 |
smso=\E[7m, rmso=\E[m, smul=\E[4m, rmul=\E[m, bold=\E[1m, |
|
536 |
rev=\E[7m, sgr0=\E[m, |
|
537 |
sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m, |
|
538 |
msgr, ich1=\E[@, dch1=\E[P, home=\E[H, |
|
539 |
sun-s|Sun Microsystems Workstation window with status line, |
|
540 |
hs, tsl=\E]l, fsl=\E\\, dsl=\E]l\E\\, use=sun, |
|
541 |
sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs, |
|
542 |
hs, tsl=\E]l, fsl=\E\\, dsl=\E]l\E\\, use=sun-e, |
|
543 |
sun-48|Sun 48-line window, |
|
544 |
lines#48, cols#80, use=sun, |
|
545 |
sun-34|Sun 34-line window, |
|
546 |
lines#34, cols#80, use=sun, |
|
547 |
sun-24|Sun 24-line window, |
|
548 |
lines#24, cols#80, use=sun, |
|
549 |
sun-17|Sun 17-line window, |
|
550 |
lines#17, cols#80, use=sun, |
|
551 |
sun-12|Sun 12-line window, |
|
552 |
lines#12, cols#80, use=sun, |
|
553 |
sun-1|Sun 1-line window for sysline, |
|
554 |
lines#1, cols#80, eslok, hs, tsl=\r, fsl=\E[K, dsl=^L, use=sun, |
|
555 |
# emacs runs faster without insert character |
|
556 |
sun-nic|sune|sun-e|Sun Microsystems Workstation console without insert character, |
|
557 |
ich1@, use=sun, |
|
558 |
sun-cmd|Sun Microsystems Workstation console with scrollable history, |
|
559 |
rmcup=\E[>4h, smcup=\E[>4l, use=sun, |
|
560 |
sun-na|Sun Microsystems Workstation console with no arrow keys, |
|
561 |
kcuu1@, kcud1@, kcub1@, kcuf1@, use=sun, |
|
562 |
sun-color|Sun Workstation console with color text support, |
|
563 |
colors#8, ncv#3, pairs#64, |
|
564 |
op=\E[0m, |
|
565 |
setab=\E[4%p1%dm, setaf=\E[3%p1%dm, |
|
566 |
setb=\E[4%?%p1%{1}%=%t4 |
|
567 |
%e%p1%{3}%=%t6 |
|
568 |
%e%p1%{4}%=%t1 |
|
569 |
%e%p1%{6}%=%t3 |
|
570 |
%e%p1%d%;m, |
|
571 |
setf=\E[3%?%p1%{1}%=%t4 |
|
572 |
%e%p1%{3}%=%t6 |
|
573 |
%e%p1%{4}%=%t1 |
|
574 |
%e%p1%{6}%=%t3 |
|
575 |
%e%p1%d%;m, |
|
576 |
use=sun, |
|
577 |
# Info: |
|
578 |
# X |
|
579 |
# Latest and greatest "xterm" entry from X11R5 |
|
580 |
# |
|
581 |
xterm|vs100|xterm terminal emulator, |
|
582 |
ind=^J, cols#80, lines#65, |
|
583 |
clear=\E[H\E[2J, cub1=^H, am, cup=\E[%i%p1%d;%p2%dH, |
|
584 |
cuf1=\E[C, cuu1=\E[A, el=\E[K, ed=\E[J, |
|
585 |
cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD, |
|
586 |
cuf=\E[%p1%dC, km, |
|
587 |
smso=\E[7m, rmso=\E[m, smul=\E[4m, rmul=\E[m, |
|
588 |
bold=\E[1m, rev=\E[7m, blink=\E[5m, sgr0=\E[m, |
|
589 |
rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H, rs2=@, |
|
590 |
kf1=\E[11~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, |
|
591 |
kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kf0=\E[21~, |
|
592 |
ht=^I, ri=\EM, vt@, xon@, csr=\E[%i%p1%d;%p2%dr, |
|
593 |
il=\E[%p1%dL, dl=\E[%p1%dM, il1=\E[L, dl1=\E[M, |
|
594 |
ich=\E[%p1%d@, dch=\E[%p1%dP, ich1=\E[@, dch1=\E[P, |
|
5259
ba90e9432b31
6569261 xterm, xtermc, xterm-color: smcup/rmcup definitions are incorrect/missing
blu
parents:
0
diff
changeset
|
595 |
rmcup=\E[2J\E[?47l\E8, smcup=\E7\E[?47h, |
0 | 596 |
use=vt100-am, |
597 |
xterms|vs100s|xterm terminal emulator (small screen 24x80), |
|
598 |
cols#80, lines#24, |
|
599 |
use=xterm, |
|
600 |
xpcterm|X PC-compatible terminal, |
|
601 |
am, xon, cols#80, lines#25, colors#8, pairs#64, ncv#3, |
|
602 |
cbt=^], bel=^G, cr=^M, clear=\e[2J\e[H, el=\e[K, ed=\e[J, |
|
603 |
cup=\e[%i%p1%d;%p2%dH, cud1=\e[B, home=\e[H, cub1=\e[D, cuf1=\e[C, |
|
604 |
cuu1=\e[A, dch1=\e[P, dl1=\e[M, smacs=\e[12m, blink=\e[5m, |
|
605 |
bold=\e[1m, invis=\e[8m, rev=\e[7m, smso=\e[7m, smul=\e[4m, |
|
606 |
rmacs=\e[10m, sgr0=\e[0;10m, rmso=\e[m, rmul=\e[m, is2=\e[0;10;39m, |
|
607 |
ich1=\e[@, il1=\e[L, kbs=^H, kdch1=\177, kcud1=\e[B, |
|
608 |
kf1=\eOP, kf2=\eOQ, kf3=\eOR, kf4=\eOS, kf5=\eOT, |
|
609 |
kf6=\eOU, kf7=\eOV, kf8=\eOW, kf9=\eOX, kf10=\eOY, |
|
610 |
khome=\e[H, kich1=\e[@, kcub1=\e[D, knp=\e[U, kpp=\e[V, |
|
611 |
kcuf1=\e[C, kcuu1=\e[A, dch=\e[%p1%dP, dl=\e[%p1%dM, |
|
612 |
cud=\e[%p1%dB, ich=\e[%p1%d@, indn=\e[%p1%dS, il=\e[%p1%dL, |
|
613 |
cub=\e[%p1%dD, cuf=\e[%p1%dC, rin=\e[%p1%dT, cuu=\e[%p1%dA, |
|
614 |
ind=\e[S, ri=\e[T, |
|
615 |
sgr=\e[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%e;10%;m, |
|
616 |
ht=^I, |
|
617 |
acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~, |
|
618 |
kcbt=^], kend=\e[Y, kf11=\eOZ, kf12=\eOA, op=\e[0m, |
|
619 |
setf=\e[%?%p1%{0}%=%t30m%e%p1%{1}%=%t34m%e%p1%{2}%=%t32m%e%p1%{3}%=%t36m%e%p1%{4}%=%t31m%e%p1%{5}%=%t35m%e%p1%{6}%=%t33m%e%p1%{6}%=%t33m%e%p1%{7}%=%t37m%;, |
|
620 |
setb=\e[%?%p1%{0}%=%t40m%e%p1%{1}%=%t44m%e%p1%{2}%=%t42m%e%p1%{3}%=%t46m%e%p1%{4}%=%t41m%e%p1%{5}%=%t45m%e%p1%{6}%=%t43m%e%p1%{7}%=%t47m%;, |
|
621 |
xpcterms|X PC-compatible terminal (small) (X Window System), |
|
622 |
lines#25, use=xpcterm, |
|
623 |
||
624 |
terak|Terak emulating Datamedia 1520, |
|
625 |
am, xenl, |
|
626 |
cols#80, lines#24, |
|
627 |
bel=^G, clear=\f, cr=\r, cub1=\b, cud1=\n, cuf1=^\, |
|
628 |
cup=^^%p2%'\s'%+%c%p1%'\s'%+%c, cuu1=^_, ed=^K, el=^], |
|
629 |
home=^Y, ht=\t, ind=\n, kcub1=\b, kcud1=\n, kcuf1=^\, |
|
630 |
kcuu1=^_, khome=^Y, |
|
631 |
trs80|trs-80|trs80-1|Radio Shack TRS-80 model I, |
|
632 |
cr=^M, cud1=^J, ind=^J, bel=^G, |
|
633 |
am, cub1=^H, cols#64, lines#16, |
|
634 |
# Info: |
|
635 |
# |
|
636 |
trs16|trs80-16|trs-80 model 16 console, |
|
637 |
cr=^M, cud1=^J, ind=^J, bel=^G, il1=\EL, am, cub1=^H, ed=\EJ, |
|
638 |
el=\EK, clear=^L, cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, |
|
639 |
cols#80, dch1=\EQ, dl1=\EM, |
|
640 |
cud1=\EB, ich1=\EP, home=\EH, kbs=^H, kcud1=\EB, |
|
641 |
kcub1=\ED, kcuf1=\EC, kcuu1=\EA, kf0=^A, kf1=^B, |
|
642 |
lines#24, cuf1=\EC, ht=^I, rmso=\ER@, xmc#0, smso=\ERD, |
|
643 |
kf2=^D, kf3=^L, kf4=^U, kf5=^P, kf6=^N, kf7=^S, |
|
644 |
# Info: |
|
645 |
# Radio Shack model 100 running standard TELCOM Rom program |
|
646 |
# hacking by <and flames to> Yerazuws@RPI, Bownesrm@RPI 1/8/84 |
|
647 |
# tested at 300 baud (foneline), remember to set the 100's RS-232 |
|
648 |
# to ignore parity (eg. config to 37I1N) if you want to |
|
649 |
# run Emacs (which this termcap description will, quite nicely!) |
|
650 |
# |
|
651 |
# From: [email protected] Mon, 11-Jul-83 17:33:49 EDT |
|
652 |
# esc A - cursor up |
|
653 |
# esc B - cursor down |
|
654 |
# esc C - cursor right |
|
655 |
# esc D - cursor left |
|
656 |
# esc E - clear screen and home cursor |
|
657 |
# esc H - home cursor |
|
658 |
# esc J - erase to end of screen |
|
659 |
# esc K - erase to end of line |
|
660 |
# esc L - insert line |
|
661 |
# esc M - delete line |
|
662 |
# esc P - turn on cursor |
|
663 |
# esc Q - turn off cursor |
|
664 |
# esc T - sets system line (?) |
|
665 |
# esc U - resets system line (?) |
|
666 |
# esc V - turn off LCD (?) |
|
667 |
# esc W - turn on LCD (?) |
|
668 |
# esc Y row column - cursor motion (:cm=\EY%+ %+ :) |
|
669 |
# esc j - clear screen, don't move cursor |
|
670 |
# esc l - erase line, don't move cursor |
|
671 |
# esc p - begin reverse video |
|
672 |
# esc q - end reverse video |
|
673 |
# esc del - change char under cursor to space |
|
674 |
# |
|
675 |
trs80-100|trs100|trs-100|MZ|m-100|m100| Radio Shack Model 100, |
|
676 |
cr=^M, cud1=^J, ind=^J, bel=^G, ed=\EJ, el=\EK, cub1=^H, am, |
|
677 |
dl1=\EM$<5>, il1=\EL$<7>, cuu1=\EA, cuf1=\EC, |
|
678 |
cup=\EY%p1%'\s'%+%c%p2%'\s'%+%c, |
|
679 |
lines#8, cols#40, smso=\Ep, rmso=\Eq, |
|
680 |
kcuu1=^^, kcud1=^_, kcub1=^], kcuf1=^\, kbs=^H, |
|
681 |
home=\EH, clear=\EE, civis=\EQ, cnorm=\EP, |
|
682 |
trs2|trsII|trs80II|Radio Shack Model II using P&T CP/M, |
|
683 |
am, msgr, cols#80, lines#24, |
|
684 |
bel=^G, clear=^L, cr=^M, cub1=^H, cud1=^_, cuf1=^], |
|
685 |
cup=\EY%p1%'\s'%+%c%p2%'\s'%+%c, dl1=^K, ed=^B, el=^A, |
|
686 |
home=^F, ht=^I, il1=^D, ind=^_, kbs=^H, kcub1=^\, |
|
687 |
kcud1=^_, kcuf1=^], kcuu1=^^, rmso=^O, smso=^N, |
|
688 |
# XEROX |
|
689 |
x820|820|820-2|Xerox 820, |
|
690 |
cr=^M, cud1=^J, ind=^J, bel=^G, am, cub1=^H, |
|
691 |
cup=\E=%p1%' '%+%c%p2%' '%+%c, |
|
692 |
clear=1^Z, ed=^Q, el=^X, cols#80, home=^^, lines#24, |
|
693 |
cuf1=^L, cuu1=^K, |
|
694 |
||
695 |
# COLOR EMULATORS |
|
696 |
||
697 |
gs6300|emots|AT&T PC6300 with EMOTS Terminal Emulator, |
|
698 |
||
699 |
# background color erase |
|
700 |
||
701 |
am, msgr, xon, bce, |
|
702 |
cols#80, it#8, lines#24, colors#8, pairs#64, |
|
703 |
acsc=\,\,..--++``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, |
|
704 |
bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, |
|
705 |
cr=\r, cub=\E[%p1%dD, cub1=\b, cud=\E[%p1%dB, cud1=\n, |
|
706 |
cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, |
|
707 |
cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, |
|
708 |
dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, .el1=\E[1K, |
|
709 |
home=\E[H, ht=\t, ich=\E[%p1%d@, ich1=\E[@, |
|
710 |
il=\E[%p1%dL, il1=\E[L, ind=\n, is2=\E[0m, kbs=\b, |
|
711 |
kcbt=^R\t, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, |
|
712 |
kcuu1=\E[A, kf1=\E[0s, kf2=\E[24s, kf3=\E[1s, |
|
713 |
kf4=\E[23s, kf5=\E[2s, kf6=\E[22s, kf7=\E[3s, |
|
714 |
kf8=\E[21s, khome=\E[H, mc4=\E[4i, mc5=\E[5i, |
|
715 |
rev=\E[7m, ri=\E[L, rmacs=\E[10m, rmln=\E|, rs1=\Ec, |
|
716 |
sgr0=\E[m\E[10m, smacs=\E[11m, smso=\E[1m, smul=\E[4m, |
|
717 |
||
718 |
# color information. blue foreground is simulated with cyan |
|
719 |
||
720 |
op=\E[?;m, |
|
721 |
setf=\E[?%?%p1%{0}%=%t0 |
|
722 |
%e%p1%{1}%=%t2 |
|
723 |
%e%p1%{1}%-%d%;m, |
|
724 |
setb=\E[?;%p1%dm, |
|
725 |
||
726 |
||
727 |
pc52|dec vt52 for PC, |
|
728 |
||
729 |
# background color erase |
|
730 |
||
731 |
am, msgr, bce, |
|
732 |
cols#80, it#8, lines#25, |
|
733 |
||
734 |
# bold means: white on black bold, so it not allowed with colors |
|
735 |
# rev meand: black on white, also not allowed |
|
736 |
# smso and dim are simulated with colors, ditto |
|
737 |
# smul is allowed, even though it always means white foreground: |
|
738 |
# it is too important. |
|
739 |
||
740 |
colors#8, pairs#64, ncv#53, |
|
741 |
bel=^G, blink=\Eo, bold=\Ebo\Ec0, clear=\EH\EJ, cr=\r, |
|
742 |
cub1=\b, cud1=\n, cuf1=\EC, |
|
743 |
cup=\EY%p1%'\s'%+%c%p2%'\s'%+%c, cuu1=\EA, |
|
744 |
dim=\Eb3\Ec0, dl1=\EM, ed=\EJ, el=\EK, ht=\t, il1=\EL, |
|
745 |
ind=\n, kbs=\b, kcub1=\EL, kcud1=\ED, kcuf1=\ER, |
|
746 |
kcuu1=\EU, kf1=\Ea, kf10=\Ej, kf2=\Eb, kf3=\Ec, |
|
747 |
kf4=\Ed, kf5=\Ee, kf6=\Ef, kf7=\Eg, kf8=\Eh, kf9=\Ei, |
|
748 |
rev=\Ep, ri=\EI, rmso=\Eb7\Ec0, sgr0=\Eb7\Ec0\Et, smso=\Eb6\Ec4, |
|
749 |
smul=\Es, |
|
750 |
||
751 |
# color information. blue foreground is simulated with cyan |
|
752 |
||
753 |
op=\Eb7\Ec0, |
|
754 |
setf=\Eb%?%p1%{1}%=%t3 |
|
755 |
%e%p1%d%;, |
|
756 |
setb=\Ec%p1%d, |
|
757 |
||
758 |
||
759 |
# CTRM terminal emulator |
|
760 |
||
761 |
ctrm|C terminal emulator, |
|
762 |
||
763 |
am, xon, |
|
764 |
||
765 |
# back_color_erase |
|
766 |
# underlining is not allowed with colors: first, is is simulated by |
|
767 |
# black on white, second, it disables background color manipulations. |
|
768 |
||
769 |
bce, |
|
770 |
cols#80, lh#0, lines#24, lm#0, lw#0, nlab#0, colors#8, pairs#64, |
|
771 |
pb#19200, vt#6, ncv#2, |
|
772 |
bel=^G, cbt=\Ei, clear=\EH\EJ, cr=\r, cub1=\b, |
|
773 |
cud1=\n, cuf1=\EC, cup=\E&a%p2%dc%p1%dY, cuu1=\EA, |
|
774 |
dch1=\EP$<2>, dl1=\EM, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, |
|
775 |
ht=\t$<2>, hts=\E1, il1=\EL, ind=\n, ip=$<2>, |
|
776 |
is2=\E&jA\r, kbs=\b, kcub1=\Eu\r, kcud1=\Ew\r, |
|
777 |
kcuf1=\Ev\r, kcuu1=\Et\r, kf1=\Ep\r, kf2=\Eq\r, |
|
778 |
kf3=\Er\r, kf4=\Es\r, kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r, |
|
779 |
kf8=\Ew\r, khome=\Ep\r, rmir=\ER, rmkx=\E&jA, smir=\EQ, |
|
780 |
smkx=\E&jB, smso=\E&dD, smul=\E&dD, tbc=\E3, |
|
781 |
vpa=\E&a%p1%dY, |
|
782 |
||
783 |
# BLINKING, REVERSE and BOLD are allowed with colors, |
|
784 |
# so we have to save their status in the static registers A, B and H |
|
785 |
# respectively, to be able to restore them when color changes |
|
786 |
# (because any color change turns off ALL attributes) |
|
787 |
||
788 |
blink=\E&dA%{1}%PA, |
|
789 |
||
790 |
# "enter_bold_mode" and "enter_reverse_mode" sequences alternates modes, |
|
791 |
# rather then simply entering them. Thus we have to check the |
|
792 |
# static register B and H to determine the status, before sending the |
|
793 |
# escape sequence. |
|
794 |
||
795 |
rev=%?%gB%{0}%=%t\E&dB%{1}%PB%;, |
|
796 |
bold=%?%gH%{0}%=%t\E&dH%{1}%PH%;, |
|
797 |
||
798 |
smul=\E&dD, |
|
799 |
||
800 |
# sgr0 now must set the status of all 3 register (A,B,H) to zero |
|
801 |
# and then reset colors |
|
802 |
||
803 |
sgr0=\E&d@%{0}%PA%{0}%PB%{0}%PH, |
|
804 |
||
805 |
# implementation of the protect mode would badly penalize the performance. |
|
806 |
# we would have to use \E&bn sequence to turn off colors (as well as all |
|
807 |
# other attributes), and keep the status of protect mode in yet another |
|
808 |
# static variable. If someone really need this mode, they would have to |
|
809 |
# create another terminfo entry. |
|
810 |
||
811 |
sgr=\E&d@%{0}%PA%{0}%PB%{0}%PD%{0}%PH |
|
812 |
%?%p1%p3%p5%|%|%t\E&dB%{1}%PB%; |
|
813 |
%?%p4%t\E&dA%{1}%PA%; |
|
814 |
%?%p6%t\E&dH%{1}%PH%; |
|
815 |
%?%p2%t\E&dD%;, |
|
816 |
||
817 |
# original color-pair: white on black. |
|
818 |
# store the information about colors into static registers |
|
819 |
||
820 |
op=\E&bn\E&bB\E&bG\E&bR |
|
821 |
%{0}%PX%{0}%PY%{0}%PZ |
|
822 |
%{1}%PW%{1}%PV%{1}%PU, |
|
823 |
||
824 |
# set foreground color. it performs the following steps. |
|
825 |
# 1) turn off all attributes |
|
826 |
# 2) turn on the background and video attribues that have been turned |
|
827 |
# on before (this information is stored in static registers X,Y,Z,A,B,H,D). |
|
828 |
# 3) turn on foreground attributes |
|
829 |
# 4) store information about foreground into U,V,W static registers |
|
830 |
||
831 |
setf=\E&bn |
|
832 |
%?%gA%t\E&dA%; |
|
833 |
%?%gB%t\E&dB%; |
|
834 |
%?%gH%t\E&dH%; |
|
835 |
%?%gX%t\E&br%; |
|
836 |
%?%gY%t\E&bg%; |
|
837 |
%?%gZ%t\E&bb%; |
|
838 |
||
839 |
%?%p1%{1}%&%t\E&bB%{1}%e%{0}%;%PW |
|
840 |
%?%p1%{2}%&%t\E&bG%{1}%e%{0}%;%PV |
|
841 |
%?%p1%{4}%&%t\E&bR%{1}%e%{0}%;%PU, |
|
842 |
||
843 |
# turn on background: similar to turn on foreground above |
|
844 |
||
845 |
setb=\E&bn |
|
846 |
%?%gA%t\E&dA%; |
|
847 |
%?%gB%t\E&dB%; |
|
848 |
%?%gH%t\E&dH%; |
|
849 |
%?%gU%t\E&bR%; |
|
850 |
%?%gV%t\E&bG%; |
|
851 |
%?%gW%t\E&bB%; |
|
852 |
||
853 |
%?%p1%{1}%&%t\E&bb%{1}%e%{0}%;%PZ |
|
854 |
%?%p1%{2}%&%t\E&bg%{1}%e%{0}%;%PY |
|
855 |
%?%p1%{4}%&%t\E&br%{1}%e%{0}%;%PX, |
|
856 |
||
857 |
# Info: |
|
858 |
# CDE's dtterm terminal emulator entry from Martin Knutson |
|
859 |
# |
|
860 |
dtterm|CDE terminal emulator, |
|
861 |
acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, am, bel=^G, |
|
862 |
blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J, cnorm=\E[?25h, |
|
863 |
colors#8, cols#80, cr=\r, csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, |
|
864 |
cub1=\b, cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C, |
|
865 |
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, |
|
866 |
dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, |
|
867 |
el=\E[K, el1=\E[1K, flash=\E[?5h$<200>\E[?5l, home=\E[H, ht=\t, |
|
868 |
hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED, invis=\E[8m, |
|
869 |
is2=\E\sF\E>\E[?1l\E[?7h\E[?45l, it#8, kbs=\b, kcub1=\E[D, kcud1=\E[B, |
|
870 |
kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kf1=\E[11~, kf2=\E[12~, |
|
871 |
kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, |
|
872 |
kf8=\E[19~, kf9=\E[20~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, |
|
873 |
kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, |
|
874 |
kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kfnd=\E[1~, khlp=\E[28~, |
|
875 |
kich1=\E[2~, knp=\E[6~, kpp=\E[5~, kslt=\E[4~, lines#24, lm#0, mir, |
|
876 |
msgr, nel=\EE, op=\E[39;49m, pairs#8, rc=\E8, rev=\E[7m, ri=\EM, |
|
877 |
rmacs=^O, rmam=\E[?7l, rmir=\E[4l, rmso=\E[22;27m, rmul=\E[24m, |
|
878 |
sc=\E7, setab=\E[%p1%{40}%+%dm, setaf=\E[%p1%{30}%+%dm, |
|
879 |
sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;2%;%?%p6%t;1%;%?%p7%t;8%;m%?%p9%t^N%e^O%;, |
|
880 |
sgr0=\E[0m, smacs=^N, smam=\E[?7h, smir=\E[4h, smso=\E[2;7m, |
|
881 |
smul=\E[4m, tbc=\E[3g, xenl, xon, |