xref: /original-bsd/share/termcap/map3270 (revision 792e4f5f)
1#
2# Copyright (c) 1989 The Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley.  The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17#	@(#)map3270	5.2 (Berkeley) 04/17/89
18#
19# this file contains mappings between characters entered from the keyboard,
20# and 3270 keys, for use by programs (like tn3270) doing 3270 emulation
21# from unix.
22#
23# inside the single quotes, a caret ("^") introduces a control character
24# sequence (rub out = ^?, by the way).  also inside the single quotes,
25# a backslash ('\') introduces an escaped character.  Also, \n, \r, \t,
26# are all as in c, and \E is another way of representing escape.
27#
28#	NOTE that while we are defining lots of function, much of that
29# function (ie: local editing keys) may not yet be available from
30# tn3270.
31
32
333a | adm3a {
34    enter = '^m';
35    clear = '^z';
36
37    nl = '^n';
38    tab = '^i';
39    btab = '^b' | '\E^i';
40    left = '^h';
41    right = '^l';
42    up = '^k';
43    down = '^j';
44    home = '^@';
45
46    delete = '^d' | '^?';		# rubout
47    eeof = '^e';
48    einp = '^w';
49    insrt = '\E ';
50    dp = '^u';
51    fm = '^y';
52
53    # pf keys
54    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
55    pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
56    pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E:'; pfk12 = '\E-';
57    pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
58    pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
59    pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
60
61    # program attention keys
62    pa1 = '^p1';
63    pa2 = '^p2';
64    pa3 = '^p3';
65
66    # other keys
67    cursel = '\E.';
68    centsign = '^\';
69
70    # local control keys
71
72    reset = '^t';	# well, there is a little confusion here...
73    master_reset = '^g';
74    flinp = '^x';
75    reshow = '^v';	# redisplay screen
76    escape = '^c';	# escape to telnet command mode
77
78    # local editing keys
79    settab = '\E;';
80    deltab = '\E\'';
81    clrtab = '\E+';
82    setmrg = '\E(';
83    sethom = '\E!';
84    coltab = '\Ei';
85    colbak = '\Eb';
86    indent = '\El';
87    undent = '\Eh';
88
89} # end of adm3a
90
91920c | tvi920c | 920b {	# tvi920c definitions...
92
93    # command keys
94    enter = '^m';
95    clear = '^z';
96
97    # cursor movement keys
98    nl = '^^' | '^n';		# home
99    tab = '^i';
100    btab = '^b' | '\E^i';
101    left = '^h';
102    right = '^l';
103    up = '^k';
104    down = '^j';
105    home = '^@';
106
107    # edit control keys
108    delete = '^?' | '^d';	# delete
109    eeof = '^e';
110    einp = '^w';
111    insrt = '\E ';
112    dp = '^u';
113    fm = '^y';
114
115    # program function keys
116
117    # F1 to F11
118    pfk1 = '^a@^m'; pfk2 = '^aA^m'; pfk3 = '^aB^m'; pfk4 = '^aC^m';
119    pfk5 = '^aD^m'; pfk6 = '^aE^m'; pfk7 = '^aF^m'; pfk8 = '^aG^m';
120    pfk9 = '^aH^m'; pfk10 = '^aI^m'; pfk11 = '^aJ^m';
121
122    # SHIFT-F11
123    pfk12 = '^aj^m';
124
125    # ESC F1 to ESC F11
126    pfk11 = '\E^a@^m'; pfk12 = '\E^aA^m';
127    pfk13 = '\E^aB^m'; pfk14 = '\E^aC^m'; pfk15 = '\E^aD^m'; pfk16 = '\E^aE^m';
128    pfk17 = '\E^aF^m'; pfk18 = '\E^aG^m'; pfk19 = '\E^aH^m'; pfk20 = '\E^aI^m';
129    pfk21 = '\E^a`^m';
130
131    # ESC SHIFT-F1 to ESC SHIFT-F4
132    pfk21 = '\E^a`^m'; pfk22 = '\E^aa^m'; pfk23 = '\E^ab^m'; pfk24 = '\E^ac^m';
133
134    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
135    pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
136    pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E-'; pfk12 = '\E=';
137    pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
138    pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
139    pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
140
141    # program attention keys
142
143    pa1 = '^a`^m' | '^p1';
144    pa2 = '^aa^m' | '^p2';
145    pa3 = '^ab^m' | '^p3';
146
147    # miscellaneous 3270 keys
148
149    cursel = '\E.';
150    centsign = '^\';
151
152    # local control keys
153
154    reset = '^t';		# there is some confusion here...
155    master_reset = '^g';
156    flinp = '^x';
157    reshow = '^v';
158    escape = '^c';	# escape to telnet command mode
159
160    # local editing keys
161
162    settab = '\E;';
163    deltab = '\E\'';
164    clrtab = '\E:';
165    setmrg = '\E*';
166    sethom = '\E!';
167    coltab = '\Ei' | '\EI';
168    colbak = '\Eb' | '\EB';
169    indent = '\El' | '\EL';
170    undent = '\Eh' | '\EH';
171} # end of tvi920c table...
172
173925 | tvi925 | 925vb | tvi925vb | televideo 925 {
174
175    # command keys
176
177    enter = '^m';
178    clear = '^z';
179
180    # cursor movement keys
181
182    nl = '^j' | '^n';
183    tab = '^i';
184    btab = '\EI';
185    left = '^h';
186    right = '^l';
187    up = '^k';
188    down = '^v';
189    home = '^^';
190
191    # edit control keys
192
193    delete = '^?';	# that's rubout...
194    eeof = '^e';
195    einp = '^w';
196    insrt = '\E ' | '\EW';
197
198    # program function keys
199
200    pfk1 = '^a@^m';
201    pfk2 = '^aA^m';
202    pfk3 = '^aB^m';
203    pfk4 = '^aC^m';
204    pfk5 = '^aD^m';
205    pfk6 = '^aE^m';
206    pfk7 = '^aF^m';
207    pfk8 = '^aG^m';
208    pfk9 = '^aH^m';
209    pfk10 = '^aI^m';
210    pfk11 = '^aJ^m';
211    pfk12 = '\EQ';
212    pfk13 = '\E^a@^m';
213    pfk14 = '\E^aA^m';
214    pfk15 = '\E^aB^m';
215    pfk16 = '\E^aC^m';
216    pfk17 = '\E^aD^m';
217    pfk18 = '\E^aE^m';
218    pfk19 = '\E^aF^m';
219    pfk20 = '\E^aG^m';
220    pfk21 = '\E^aH^m';
221    pfk22 = '\E^aI^m';
222    pfk23 = '\E^aJ^m';
223    pfk24 = '\E\EQ';
224
225    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
226    pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
227    pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E-'; pfk12 = '\E=';
228    pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
229    pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
230    pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
231
232    # program attention keys
233
234    pa1 = '^a`^m';
235    pa2 = '^aa^m';
236    pa3 = '^ab^m';
237
238    # other keys
239    centsign = '^\';
240
241    # local control keys
242
243    reset = '^t';		# again, there is some confusion here...
244    master_reset = '^g';
245    flinp = '^x';
246    reshow = '^b';
247    escape = '^c';	# escape to telnet command mode
248
249# local editing keys
250
251    settab = '\EY';
252    deltab = '\Ey';
253    clrtab = '\E:';
254    setmrg = '\ET';
255    sethom = '\Et';
256    coltab = '^p';
257    colbak = '^o';
258    indent = '\ER';
259    undent = '\EE';
260}
261
262
263924 | tvi924 {
264
265    # command keys
266
267    enter = '^m';
268    clear = '^z';
269
270    # cursor movement keys
271
272    nl = '^j';
273    tab = '^i';
274    btab = '\EI';
275    left = '^h';
276    right = '^l';
277    up = '^k';
278    down = '^v';
279    home = '^^';
280
281    # edit control keys
282
283    delete = '^?';	# that's rubout...
284    eeof = '^e';
285    einp = '^w';
286    insrt = '\E ' | '\EW';
287    dp = '^u';
288    fm = '^y';
289
290    # program function keys
291
292    pfk1 = '^a@^m';
293    pfk2 = '^aA^m';
294    pfk3 = '^aB^m';
295    pfk4 = '^aC^m';
296    pfk5 = '^aD^m';
297    pfk6 = '^aE^m';
298    pfk7 = '^aF^m';
299    pfk8 = '^aG^m';
300    pfk9 = '^aH^m';
301    pfk10 = '^aI^m';
302    pfk11 = '^aJ^m';
303    pfk12 = '^aK^m';
304    pfk13 = '^aL^m';
305    pfk14 = '^aM^m';
306    pfk15 = '^aN^m';
307    pfk16 = '^aO^m';
308    pfk17 = '^af^m';
309    pfk18 = '^ag^m';
310    pfk19 = '^ah^m';
311    pfk20 = '^ai^m';
312    pfk21 = '^aj^m';
313    pfk22 = '^ak^m';
314    pfk23 = '^al^m';
315    pfk24 = '^am^m';
316
317    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
318    pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
319    pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E-'; pfk12 = '\E=';
320    pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
321    pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
322    pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
323
324    # program attention keys
325
326    pa1 = '^a`^m';
327    pa2 = '^aa^m';
328    pa3 = '^ab^m';
329
330    # other keys
331    centsign = '^\';
332
333    # local control keys
334
335    reset = '^t';		# again, there is some confusion here...
336    master_reset = '^g';
337    flinp = '^x';
338    reshow = '^b';
339    escape = '^c';	# escape to telnet command mode
340
341    # local editing keys
342
343    settab = '\EY';
344    deltab = '\Ey';
345    clrtab = '\E:';
346    setmrg = '\ET';
347    sethom = '\Et';
348    coltab = '^p';
349    colbak = '^o';
350    indent = '\ER';
351    undent = '\EE';
352}
353
354h19 | heath | h19b | heathkit | heath-19 | z19 | zenith {
355enter = '^m';
356clear = '^z';
357
358nl = '^n' | '^?';
359tab = '^i';
360btab = '^b';
361left = '^h';
362right = '^l';
363up = '^k';
364down = '^j';
365home = '^@';
366
367delete = '^d';
368eeof = '^e';
369einp = '^w';
370insrt = '\E ';
371
372# pf keys
373pfk1 = '\E?p\E?q'; pfk2 = '\E?p\E?r'; pfk3 = '\E?p\E?s'; pfk4 = '\E?p\E?t';
374pfk5 = '\E?p\E?u'; pfk6 = '\E?p\E?v'; pfk7 = '\E?p\E?w'; pfk8 = '\E?p\E?x';
375pfk9 = '\E?p\E?y'; pfk10 = '\E?q\E?p'; pfk11 = '\E?q\E?q'; pfk12 = '\E?q\E?r';
376pfk13 = '\E?q\E?s'; pfk14 = '\E?q\E?t'; pfk15 = '\E?q\E?u'; pfk16 = '\E?q\E?v';
377pfk17 = '\E?q\E?w'; pfk18 = '\E?q\E?x'; pfk19 = '\E?q\E?y'; pfk20 = '\E?r\E?p';
378pfk21 = '\E?r\E?q'; pfk22 = '\E?r\E?r'; pfk23 = '\E?r\E?s'; pfk24 = '\E?r\E?t';
379
380    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
381    pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
382    pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E-'; pfk12 = '\E=';
383    pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
384    pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
385    pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
386
387# program attention keys
388pa1 = '\EP';
389pa2 = '\EQ';
390pa3 = '\ER';
391
392# other keys
393
394    centsign = '^\';
395# cursel = '\E.'; # find out what this does
396master_reset = '^g';
397
398# local control keys
399
400reset = '^t';	# well, there is a little confusion here...
401flinp = '^x';
402reshow = '^v';	# redisplay screen
403escape = '^c';	# escape to telnet command mode
404
405# local editing keys
406settab = '\E;';
407clrtab = '\E:';
408setmrg = '\E\'';
409sethom = '\E!';
410coltab = '\Ei';
411colbak = '\Eb';
412indent = '\El';
413undent = '\Eh';
414
415} # end of h19
416
417
418co | c100 | concept | c100-4p | concept100 {
419enter = '^m';
420clear = '^z' | '^\2';
421
422nl = '^n';
423tab = '^i';
424btab = '^b';
425left = '^h' | '\E>';
426right = '^l' | '\E=';
427up = '^k' | '\E;';
428down = '^j' | '\E<';
429home = '\E?';
430
431delete = '^d' | '^?' | '^\1';
432eeof = '^e' | '^\3';
433einp = '^w';
434insrt = '^\0';
435
436# pf keys
437pfk1 = '\E\E1' | '^\5'; pfk2 = '\E\E2' | '^\6'; pfk3 = '\E\E3' | '^\7';
438pfk4 = '\E\E4' | '^\8'; pfk5 = '\E\E5' | '^\9'; pfk6 = '\E\E6' | '^\:';
439pfk7 = '\E\E7' | '^\;'; pfk8 = '\E\E8' | '^\<'; pfk9 = '\E\E9' | '^\=';
440pfk10 = '\E\E0' | '^\>'; pfk11 = '\E\E-' | '^\?'; pfk12 = '^\@';
441pfk13 = '^\A'; pfk14 = '^\B'; pfk15 = '^\)'; pfk16 = '^\*';
442pfk17 = '^\+'; pfk18 = '^\,'; pfk19 = '^\-'; pfk20 = '^\.';
443pfk21 = '^\/'; pfk22 = '^\C'; pfk23 = '^\D'; pfk24 = '^\E';
444
445    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
446    pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
447    pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E-'; pfk12 = '^f12';
448    pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
449    pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
450    pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
451
452# program attention keys
453pa1 = '^\%';
454pa2 = '^\&' | '\E+';
455pa3 = '^\\'';
456
457# other keys
458cursel = '\E.';
459aplon = '\E{';
460aplend = '\E}';
461aploff = '\E_';
462master_reset = '^g';
463centsign = '\E\\';
464
465# local control keys
466
467reset = '^t';	# well, there is a little confusion here...
468flinp = '^x';
469reshow = '^v';	# redisplay screen
470escape = '^c';	# escape to telnet command mode
471
472# local editing keys
473settab = '\E\E;';
474clrtab = '\E\E:';
475setmrg = '\E\E*';
476sethom = '\E\E!';
477coltab = '\E\Ei';
478colbak = '\E\Eb';
479indent = '\E\El';
480undent = '\E\Eh';
481
482} # end of concept
483avt | avt-8p-s | avt-4p-s | avt-rv {
484enter = '^m';
485clear = '^z' | '\EOM';
486
487nl = '^?';
488tab = '^i';
489btab = '^b';
490left = '^h' | '\E[D';
491right = '^l' | '\E[C';
492up = '^k' | '\E[A';
493down = '^j' | '\E[B';
494home = '\EOn';
495
496delete = '^d';
497eeof = '^e';
498einp = '^w';
499insrt = '^ ' | '\E ';
500
501# pf keys
502pfk1 = '\EOq' | '\E1'; pfk2 = '\EOr' | '\E2'; pfk3 = '\EOs' | '\E3';
503pfk4 = '\EOt' | '\E4'; pfk5 = '\EOu' | '\E5'; pfk6 = '\EOv' | '\E6';
504pfk7 = '\EOw' | '\E7'; pfk8 = '\EOx' | '\E8'; pfk9 = '\EOy' | '\E9';
505pfk10 = '\EOP\EOp' | '\E0'; pfk11 = '\EOP\EOq' | '\E-';
506pfk12 = '\EOP\EOr' | '\E='; pfk13 = '\EOP\EOs' | '^f13';
507pfk14 = '\EOP\EOt' | '^f14'; pfk15 = '\EOP\EOu' | '^f15';
508pfk16 = '\EOP\EOv' | '^f16'; pfk17 = '\EOP\EOw' | '^f17';
509pfk18 = '\EOP\EOx' | '^f18'; pfk19 = '\EOP\EOy' | '^f19';
510pfk20 = '\EOQ\EOp' | '^f20'; pfk21 = '\EOQ\EOq' | '^f21';
511
512    pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
513
514# program attention keys
515pa1 = '\E\EOP' | '^p1';
516pa2 = '\E\EOQ' | '^p2';
517
518# local control keys
519
520escape = '^c';	# escape to telnet command mode
521master_reset = '^g';
522    centsign = '^\';
523
524# local editing keys
525settab = '\E;';
526deltab = '\E\'';
527clrtab = '\E:';
528setmrg = '\E,';
529sethom = '\E.';
530coltab = '\E\E[B';
531colbak = '\E\E[A';
532indent = '\E\E[C';
533undent = '\E\E[D';
534}    # end of avt, etc.
535
536tvipt | vp | televideopt {
537    enter = '^m';
538    clear = '^z';
539
540 nl = '^n';
541    tab = '^i';
542    btab = '^b';
543    left = '^h';
544    right = '^l';
545    up = '^k';
546    down = '^j';
547    home = '^^';
548
549    delete = '^?';
550    eeof = '^e';
551    einp = '^w';
552    insrt = '\E ';
553
554    # pf keys
555    pfk1 = '\E1' | '^A@^m';
556    pfk2 = '\E2' | '^AA^m';
557    pfk3 = '\E3' | '^AB^m';
558    pfk4 = '\E4' | '^AC^m';
559    pfk5 = '\E5' | '^AD^m';
560    pfk6 = '\E6' | '^AE^m';
561    pfk7 = '\E7' | '^AF^m';
562    pfk8 = '\E8';
563    pfk9 = '\E9';
564    pfk10 = '\E0';
565    pfk11 = '\E!' | '\E^A@^m';
566    pfk12 = '\E@' | '\E^AA^m';
567    pfk13 = '\E#' | '\E^AB^m';
568    pfk14 = '\E$' | '\E^AC^m';
569    pfk15 = '\E%' | '\E^AD^m';
570    pfk16 = '\E^AE^m' | '\E\^';
571    pfk17 = '\E&' | '\E^AF^m';
572    pfk18 = '\E*';
573    pfk19 = '\E(';
574    pfk20 = '\E)';
575
576    # program attention keys
577    pa1 = '^AG^m';
578    pa2 = '^AH^m';
579    pa3 = '^AI^m';
580
581    # other keys
582#    # cursel = '\E.';
583    centsign = '^\';
584
585    # local control keys
586
587    reset = '^t';	# well, there is a little confusion here...
588    master_reset = '^g';
589    flinp = '^x';
590    reshow = '^v';	# redisplay screen
591    escape = '^c';	# escape to telnet command mode
592
593    # local editing keys
594    settab = '\E;';
595    clrtab = '\E:';
596    setmrg = '\E[';
597    sethom = '\E+';
598    coltab = '\Ei' | '\EI';
599    colbak = '\Eb' | '\EB';
600    indent = '\El' | '\EL';
601    undent = '\Eh' | '\EH';
602} # end of tvipt
603vt100 | vt100nam | pt100 | vt125 | vt102 | direct831 | tek4125 | pcplot |        microvax{
604enter = '^m';
605clear = '^z' | '\EOM';
606
607nl = '^?';
608tab = '^i';
609btab = '^b';
610left = '^h' | '\EOD';
611right = '^l' | '\EOC';
612up = '^k' | '\EOA';
613down = '^j' | '\EOB';
614home = '\EOn';
615
616delete = '^d';
617eeof = '^e';
618einp = '^w';
619insrt = '^ ' | '\E ';
620
621# pf keys
622pfk1 = '\EOq' | '\E1'; pfk2 = '\EOr' | '\E2'; pfk3 = '\EOs' | '\E3';
623pfk4 = '\EOt' | '\E4'; pfk5 = '\EOu' | '\E5'; pfk6 = '\EOv' | '\E6';
624pfk7 = '\EOw' | '\E7'; pfk8 = '\EOx' | '\E8'; pfk9 = '\EOy' | '\E9';
625pfk10 = '\EOP\EOp' | '\E0'; pfk11 = '\EOP\EOq' | '\E-';
626pfk12 = '\EOP\EOr' | '\E='; pfk13 = '\EOP\EOs' | '^f13';
627pfk14 = '\EOP\EOt' | '^f14'; pfk15 = '\EOP\EOu' | '^f15';
628pfk16 = '\EOP\EOv' | '^f16'; pfk17 = '\EOP\EOw' | '^f17';
629pfk18 = '\EOP\EOx' | '^f18'; pfk19 = '\EOP\EOy' | '^f19';
630pfk20 = '\EOQ\EOp' | '^f20'; pfk21 = '\EOQ\EOq' | '^f21';
631
632# program attention keys
633pa1 = '\E\EOP' | '^p1';
634pa2 = '\E\EOQ' | '^p2';
635
636# local control keys
637
638escape = '^c';	# escape to telnet command mode
639master_reset = '^g';
640    centsign = '^\';
641
642# local editing keys
643settab = '\E;';
644deltab = '\E\'';
645clrtab = '\E:';
646setmrg = '\E,';
647sethom = '\E.';
648coltab = '\E\E[B';
649colbak = '\E\E[A';
650indent = '\E\E[C';
651undent = '\E\E[D';
652}    # end of vt100, etc.
653
654sun  {
655    enter = '^m';
656    clear = '^z' | '\E[222z';
657
658    nl = '^j';
659    tab = '^i';
660    btab = '^b' | '\E[195z' | '\E[216z';
661    left = '^h' | '\E[D' | '\EOD';
662    right = '^l' | '\E[C' | '\EOC';
663    up = '^k' | '\E[A' | '\EOA';
664    down = '\E[B' | '\EOB';
665    home = '\E[218z';
666
667    delete = '^d' | '^?';
668    eeof = '^e' | '\E[214z';
669    einp = '^w' | '\E[213z';
670    insrt = '\E ' | '\E[220z';
671    dp = '^u';
672    fm = '^y';
673
674    # pf keys
675    pfk1 = '\E[224z' | '\E1'; pfk2 = '\E[225z' | '\E2';
676    pfk3 = '\E[226z' | '\E3'; pfk4 = '\E[227z' | '\E4';
677    pfk5 = '\E[228z' | '\E5'; pfk6 = '\E[229z' | '\E6';
678    pfk7 = '\E[230z' | '\E7'; pfk8 = '\E[231z' | '\E8';
679    pfk9 = '\E[232z' | '\E9'; pfk10 = '\E[208z' | '\E0';
680    pfk11 = '\E[209z' | '\E-'; pfk12 = '\E[210z' | '\E=';
681    pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
682    pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
683    pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
684
685    # program attention keys
686    pa1 = '^p1' | '\E[211z';
687    pa2 = '^p2' | '\E[212z';
688    pa3 = '^p3';
689
690    # other keys
691    cursel = '\E.';
692    centsign = '^\';
693
694    # local control keys
695
696    reset = '^t';	# well, there is a little confusion here...
697    master_reset = '^g';
698    flinp = '^x';
699    reshow = '^v';	# redisplay screen
700    escape = '^c';	# escape to telnet command mode
701
702    # local editing keys
703    settab = '\E;';
704    clrtab = '\E+';
705    setmrg = '\E(';
706    sethom = '\E!';
707    coltab = '\Ei';
708    colbak = '\Eb';
709    indent = '\El';
710    undent = '\Eh';
711} # end of sun
712#
713# Works with /usr/ucb/tn3270 except tn3270pc which requires /usr/new/tn3270.
714#
715msk22714 | mskermit22714 | msk227 | mskermit227 {
716#
717# 9-5-86 gts
718# MS-Kermit UCB 227.14 to Unix then tn3270 to CMS.
719# Includes underlying ADM3A keystrokes for full S/1 compatibiliy.
720# Attempts to work for both "do unix" and "do cms" keyboards.  Differences are
721# marked with (C) for CMS only or (U) for Unix only.  Incidental effects are
722# enclosed in square brackets [].
723# New functions WERASE Ctrl-\  and FERASE Ctrl-_.
724
725    enter = '^m';					# <--'
726    clear = '^z';					# keypad + (C)
727
728    nl    = '^n';					# keypad End (C)
729    tab   = '^i';					# --->|
730    btab  = '^b'  | '\E^I';				# |<--- (C|U)
731    left  = '^h';					# keypad Left
732    right = '^l';					# keypad Right
733    up    = '^k';					# keypad Up
734    down  = '^j'  | '\EB';				# keypad Down (U|C)
735							# [ keypad End (U) ]
736    home  = '^^'  | '^@';				# keypad Home (U|C)
737    dp    = '^u'  | '^a';				# [ keypad PgUp (U) ]
738    fm    = '^y';
739
740    delete = '^d' | '^?';				# keypad Del
741							# [ keypad PgDn (U) ]
742    eeof   = '^e';
743    einp   = '^w';					# keypad - (C)
744    insrt  = '\E ' | '\Ei';				# keypad Ins (C|U)
745
746    # pf keys IBM PC/XT/AT and ADM3A Esc d
747    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4'; pfk5 = '\E5';
748    pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8'; pfk9 = '\E9'; pfk10= '\E0';
749    # pf keys IBM PC/XT/AT Shift and ADM3A Ctrl-F nn
750    pfk11='^f11'; pfk12='^f12'; pfk13='^f13'; pfk14='^f14'; pfk15='^f15';
751    pfk16='^f16'; pfk17='^f17'; pfk18='^f18'; pfk19='^f19'; pfk20='^f20';
752    # pf keys IBM PC/XT/AT Ctrl- and ADM3A Ctrl-F nn
753    pfk21='^f21'; pfk22='^f22'; pfk23='^f23'; pfk24='^f24'; pfk25='^f25';
754    pfk26='^f26'; pfk27='^f27'; pfk28='^f28'; pfk29='^f29'; pfk30='^f30';
755    # pf keys IBM PC/XT/AT Ctrl-Shift- and ADM3A Ctrl-F nn
756    pfk31='^f31'; pfk32='^f32'; pfk33='^f33'; pfk34='^f34'; pfk35='^f35';
757    pfk36='^f36';
758    # pf keys IBM PC/XT/AT Alt-1 to Alt-= (generated as, Esc d, ^F 11, ^F 12)
759    # pf keys ADM3A Esc d           (d = 1 to 0 interpreted as above)
760    pfk11 = '\E-'; pfk12 = '\E=';
761
762    # program attention keys (same as ADM3A)
763    pa1 = '^p1';					# Alt-F1
764    pa2 = '^p2';					# Alt-F2
765    pa3 = '^p3';					# Alt-F3
766   #pa4 = '^p4';					# Alt-F3
767   #testreq = '^pr' | '^pR';				# Alt-F5
768
769    # other keys
770    cursel = '\E.';
771    werase = '^\';
772    ferase = '^_';
773
774    # local control keys
775    master_reset = '^g';
776    reset  = '^r'  | '^t';
777    flinp  = '^x';
778    reshow = '^v';
779    escape = '^c';					# escape to telnet
780
781    # local editing keys
782    settab = '\E;';
783    deltab = '\E\'';
784    clrtab = '\E:' | '\E+';
785    setmrg = '\E(';
786    sethom = '\E!';
787    coltab = '\EI';
788   #coltab = '\Ei' | '\EI';				# cannot use Esc i
789    colbak = '\Eb';					# on S/1 \EB is down
790   #colbak = '\Eb' | '\EB';				# cannot use Esc B
791    indent = '\El' | '\EL';
792    undent = '\Eh' | '\EH';				# on S/1 \EH is Home
793
794} # end of msk22714
795#
796ansisys | ansisysk | nansisys | nansisysk {
797#
798# 9-5-86 gts
799# IBM PC/XT/AT using the ansi.sys | ansi.sysk | nansi.sys | nansi.sysk termcaps.
800#
801# PROBLEM: cannot use periods in termcap name until mset fixed (gts 9-5-86).
802#
803# PROBLEM: cannot use eval `mset ...` until Unix csh changed to allow more
804# than 1024 characters in an environment string or until mset changed to
805# return only the filename if the resulting string is longer than 1024.
806#
807# PROBLEM when NUL (^@) immediately follows a Return:  Unix telent apparently
808# ignores the NUL!  (Can tn3270 negotiate a different newline?)
809#
810# Nearly identical to the map3270 for the IBM PC TN3270, which itself is nearly
811# identical to the MS-Kermit UCB 227.14 keyboard which in turn was a  modest
812# improvement of the BIJOU Yterm keyboard.  See HELP TN3270PC on CMS.
813# Includes the underlying ADM3A keystrokes for full S/1 compatibility.
814# Adds some Ctrl-keypad keys to compensate for TN3270 ROMBIOS dependency
815# which prevents separate use of the keypad plus and minus keys.
816# Adds new functions WERASE and FERASE.
817#
818
819    enter = '^m';					# <--'
820    clear = '^z' | '^@w';				# Ctrl-Home
821
822    nl    = '^n'  | '^@O';				# keypad End
823    tab   = '^i';					# --->|
824    btab  = '^b'  | '^@^O';				# |<---
825    left  = '^h'  | '^@K';				# keypad Left
826    right = '^l'  | '^@M';				# keypad Right
827    up    = '^k'  | '^@H';				# keypad Up
828    down  = '^j'  | '^@P';				# keypad Down
829    home  = '^^'  | '^@G';				# keypad Home
830							# (cannot use Ctrl-@)
831    dp    = '^u';
832    fm    = '^y';
833
834    delete = '^d'  | '^?'  | '^@S';			# keypad Del
835    eeof   = '^e'  | '^@u';				# keypad Ctrl-End
836    einp   = '^w';
837    insrt  = '\E ' | '^@R' | '\E\Ei';			# keypad Ins
838
839    # pf keys IBM PC/XT/AT
840    pfk1 = '^@;'; pfk2 = '^@<'; pfk3 = '^@='; pfk4 = '^@>'; pfk5 = '^@?';
841    pfk6 = '^@@'; pfk7 = '^@A'; pfk8 = '^@B'; pfk9 = '^@C'; pfk10= '^@D';
842    # pf keys IBM PC/XT/AT Shift
843    pfk11 = '^@T'; pfk12 = '^@U'; pfk13 = '^@V'; pfk14 = '^@W';  pfk15 = '^@X';
844    pfk16 = '^@Y'; pfk17 = '^@Z'; pfk18 = '^@['; pfk19 = '^@\\'; pfk20 = '^@]';
845    # pf keys IBM PC/XT/AT Ctrl-
846    pfk21 = '^@\^';pfk22 = '^@_'; pfk23 = '^@`'; pfk24 = '^@a';  pfk25 = '^@b';
847    pfk26 = '^@c'; pfk27 = '^@d'; pfk28 = '^@e'; pfk29 = '^@\f'; pfk30 = '^@g';
848    # pf keys IBM PC/XT/AT Ctrl-Shift-   (cannot be done yet with  PC tn3270)
849    # pf keys IBM PC/XT/AT Alt-d
850    pfk1 = '^@x'; pfk2 = '^@y'; pfk3 = '^@z'; pfk4 = '^@{'; pfk5 = '^@|';
851    pfk6 = '^@}'; pfk7 = '^@~'; pfk8 = '^@^?';pfk9 = '^@^@';pfk10= '^@^A';
852    pfk11='^@^B'; pfk12= '^@^C';
853
854    # pf keys ADM3A Esc d
855    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4'; pfk5 = '\E5';
856    pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8'; pfk9 = '\E9'; pfk10= '\E0';
857    pfk11 = '\E-'; pfk12 = '\E=';
858    # pf keys ADM3A Ctrl-F n n
859    pfk1 = '^f01'; pfk2 = '^f02'; pfk3 = '^f03'; pfk4 = '^f04'; pfk5= '^f05';
860    pfk6 = '^f06'; pfk7 = '^f07'; pfk8 = '^f08'; pfk9 = '^f09'; pfk10= '^f10';
861    pfk11= '^f11'; pfk12= '^f12'; pfk13= '^f13'; pfk14= '^f14'; pfk15= '^f15';
862    pfk16= '^f16'; pfk17= '^f17'; pfk18= '^f18'; pfk19= '^f19'; pfk20= '^f20';
863    pfk21= '^f21'; pfk22= '^f22'; pfk23= '^f23'; pfk24= '^f24'; pfk25= '^f25';
864    pfk26= '^f26'; pfk27= '^f27'; pfk28= '^f28'; pfk29= '^f29'; pfk30= '^f30';
865    pfk31= '^f31'; pfk32= '^f32'; pfk33= '^f33'; pfk34= '^f34'; pfk35= '^f35';
866    pfk36= '^f36';
867
868    # program attention keys
869    pa1 = '^p1' | '^@h';				# Alt-F1
870    pa2 = '^p2' | '^@i';				# Alt-F2
871    pa3 = '^p3' | '^@j';				# Alt-F3
872   #pa4 = '^p4' | '^@k';				# Alt-F4
873   #testreq = '^pr' | '^pR' | '^@l'			# Alt-F5
874
875    # other keys
876    cursel = '\E.';
877    werase = '^\';
878    ferase = '^_';
879    pfk7 = '^@I'    | '\E^U';				# keypad PgUp
880    pfk8 = '^@Q'    | '\E^D';				# keypad PgDn
881
882    # local control keys
883    reset  = '^r' | '^t';
884    master_reset = '^g';
885    flinp  = '^x';
886    reshow = '^v';
887    escape = '^c';		# escape to TN3270 command prompt
888
889    # local editing keys
890    settab = '\E;';
891    deltab = '\E\'';
892    clrtab = '\E:' | '\E+';
893    setmrg = '\E(';
894    sethom = '\E!';
895    coltab = '\Ei' | '\EI';
896    colbak = '\Eb' | '\EB';		# on S/1 \EB is down
897    indent = '\El' | '\EL';
898    undent = '\Eh' | '\EH';		# on S/1 \EH is Home
899
900} # end of ansi.sys
901#
902tn3270pc | ibm-3278-2 {
903#
904# 2-14-87 gts
905#
906# MAP3270 for the IBM PC logged into Unix with PC TN3270 with TERM=nansisys,
907# nansisysk, ansisys or ansisysk, hence requires KETBD=tn3270pc.
908#
909# MAP3270 for the IBM PC
910# Nearly identical to the MS-Kermit UCB 227.14 keyboard which in turn was
911# an modest improvement of the BIJOU Yterm keyboard.
912# Includes underlying ADM3A keystrokes for full S/1 compatibiliy.
913# Adds some Ctrl-keypad keys to compensate for TN3270 ROMBIOS dependency
914# which prevents separate use of the keypad plus and minus keys, and adds
915# new functions WERASE, FERASE, WORDTAB, WORDBACKTAB, WORDEND and FIELDEND.
916# Where possible these extensions are compatible with IBM PC keystroke usage
917# (see XT technical reference manual Keyboard Usage Guidelines).
918# Includes F11 and F12 keys from the new IBM PC/XT/AT keyboard.
919#
920
921    centsign = '\Ec' | '\EC';				# CentSign for input
922    enter = '^m';					# <--'
923    clear = '^z' | '^Aw';				# Ctrl-Home
924
925    nl    = '^n'  | '^AO';				# keypad End
926    tab   = '^i';					# --->|
927    btab  = '^b'  | '\E^I' | '^A^O';			# |<---
928    left  = '^h'  | '^AK';				# keypad Left
929    right = '^l'  | '^AM';				# keypad Right
930    up    = '^k'  | '^AH';				# keypad Up
931    down  = '^j'  | '^AP';				# keypad Down
932    home  = '^^'  | '^AG'  | '^@';			# keypad Home
933    dp    = '^u';
934    fm    = '^y';
935
936    delete = '^d' | '^AS';				# keypad Del
937    eeof = '^e'  | '^Au';				# keypad End
938    einp = '^w';
939    insrt = '\E ' | '^AR';				# keypad Ins
940
941    # pf keys IBM PC/XT/AT
942    pfk1 = '^A;'; pfk2 = '^A<'; pfk3 = '^A='; pfk4 = '^A>'; pfk5 = '^A?';
943    pfk6 = '^A@'; pfk7 = '^AA'; pfk8 = '^AB'; pfk9 = '^AC'; pfk10= '^AD';
944    # pf keys IBM PC/XT/AT Shift
945    pfk11 = '^AT'; pfk12 = '^AU'; pfk13 = '^AV'; pfk14 = '^AW';  pfk15 = '^AX';
946    pfk16 = '^AY'; pfk17 = '^AZ'; pfk18 = '^A['; pfk19 = '^A\\'; pfk20 = '^A]';
947    # pf keys IBM PC/XT/AT Ctrl-
948    pfk21 = '^A\^';pfk22 = '^A_'; pfk23 = '^A`'; pfk24 = '^Aa'; pfk25 = '^Ab';
949    pfk26 = '^Ac'; pfk27 = '^Ad'; pfk28 = '^Ae'; pfk29 = '^Af'; pfk30 = '^Ag';
950    # pf keys IBM PC/XT/AT Alt-d
951    pfk1 = '^Ax'; pfk2 = '^Ay'; pfk3 = '^Az'; pfk4 = '^A{'; pfk5 = '^A|';
952    pfk6 = '^A}'; pfk7 = '^A~'; pfk8 = '^A^?';pfk9 = '^A^A^@';pfk10= '^A^A^A';
953    pfk11='^A^A^b'; pfk12= '^A^A^c';
954    # pf keys NEW IBM PC/XT/AT Keyboard
955    pfk11='^A^A^e'; pfk12= '^A^A^f';
956
957    # pf keys ADM3A Esc d
958    pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4'; pfk5 = '\E5';
959    pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8'; pfk9 = '\E9'; pfk10= '\E0';
960    pfk11 = '\E-'; pfk12 = '\E=';
961    # pf keys ADM3A Ctrl-F n n
962    pfk1 = '^f01'; pfk2 = '^f02'; pfk3 = '^f03'; pfk4 = '^f04'; pfk5= '^f05';
963    pfk6 = '^f06'; pfk7 = '^f07'; pfk8 = '^f08'; pfk9 = '^f09'; pfk10= '^f10';
964    pfk11= '^f11'; pfk12= '^f12'; pfk13= '^f13'; pfk14= '^f14'; pfk15= '^f15';
965    pfk16= '^f16'; pfk17= '^f17'; pfk18= '^f18'; pfk19= '^f19'; pfk20= '^f20';
966    pfk21= '^f21'; pfk22= '^f22'; pfk23= '^f23'; pfk24= '^f24'; pfk25= '^f25';
967    pfk26= '^f26'; pfk27= '^f27'; pfk28= '^f28'; pfk29= '^f29'; pfk30= '^f30';
968    pfk31= '^f31'; pfk32= '^f32'; pfk33= '^f33'; pfk34= '^f34'; pfk35= '^f35';
969    pfk36= '^f36';
970
971    # program attention keys
972    pa1 = '^p1' | '^Ah';				# Alt-F1
973    pa2 = '^p2' | '^Ai';				# Alt-F2
974    pa3 = '^p3' | '^Aj';				# Alt-F3
975    treq = '^pr' | '^pR' | '^Al';			# Alt-F5
976
977    # other keys
978    cursel = '\E.';
979    werase = '^\';
980    ferase = '^_';
981    wordtab = '^At';					# Ctrl-Right
982    wordbacktab = '^As';				# Ctrl-Left
983    wordend = '^A^A^d';					# Ctrl-PgUp
984    fieldend = '^Av';					# Ctrl-PgDn
985    pfk7 = '^AI';					# keypad PgUp
986    pfk8 = '^AQ';					# keypad PgDn
987
988    # local control keys
989    reset  = '^r' | '^t';
990    master_reset = '^g';
991    flinp  = '^x';
992    reshow = '^v';
993    escape = '^c';					# to command prompt
994    disc   = '^pS1D';					# disconnect (suspend)?
995    sync   = '^pS1S';					# in sync with user?
996
997    # local editing keys
998    settab = '\E;';
999    deltab = '\E\'';
1000    clrtab = '\E:' | '\E+';
1001    setmrg = '\E(';
1002    sethom = '\E!';
1003    coltab = '\Ei' | '\EI';
1004    colbak = '\Eb' | '\EB';				# on S/1 \EB is down
1005    indent = '\El' | '\EL';
1006    undent = '\Eh' | '\EH';				# on S/1 \EH is Home
1007
1008} # end of tn3270pc
1009