Annotation of 43BSD/ucb/tn3270/map3270, revision 1.1

1.1     ! root        1: # /etc/map3270 (/usr/new/etc/map3270 before migration)
        !             2: # mail corrections and additions to "termcap"
        !             3: #
        !             4: # this file contains mappings between characters entered from the keyboard,
        !             5: # and 3270 keys, for use by programs (like tn3270) doing 3270 emulation
        !             6: # from unix.
        !             7: #
        !             8: # inside the single quotes, a caret ("^") introduces a control character
        !             9: # sequence (rub out = ^?, by the way).  also inside the single quotes,
        !            10: # a backslash ('\') introduces an escaped character.  Also, \n, \r, \t,
        !            11: # are all as in c, and \E is another way of representing escape.
        !            12: #
        !            13: #      NOTE that while we are defining lots of function, much of that
        !            14: # function (ie: local editing keys) may not yet be available from
        !            15: # tn3270.
        !            16: 
        !            17: 
        !            18: 3a | adm3a {
        !            19:     enter = '^m';
        !            20:     clear = '^z';
        !            21: 
        !            22:     nl = '^n' | '^^';
        !            23:     tab = '^i';
        !            24:     btab = '^b';
        !            25:     left = '^h';
        !            26:     right = '^l';
        !            27:     up = '^k';
        !            28:     down = '^j';
        !            29:     home = '^@';
        !            30: 
        !            31:     delete = '^d' | '^?';
        !            32:     eeof = '^e';
        !            33:     einp = '^w';
        !            34:     insrt = '\E ';
        !            35:     dp = '^u';
        !            36:     fm = '^y';
        !            37: 
        !            38:     # pf keys
        !            39:     pfk1 = '\E1'; pfk2 = '\E2'; pfk3 = '\E3'; pfk4 = '\E4';
        !            40:     pfk5 = '\E5'; pfk6 = '\E6'; pfk7 = '\E7'; pfk8 = '\E8';
        !            41:     pfk9 = '\E9'; pfk10 = '\E0'; pfk11 = '\E:'; pfk12 = '\E-';
        !            42:     pfk13 = '^f13'; pfk14 = '^f14'; pfk15 = '^f15'; pfk16 = '^f16';
        !            43:     pfk17 = '^f17'; pfk18 = '^f18'; pfk19 = '^f19'; pfk20 = '^f20';
        !            44:     pfk21 = '^f21'; pfk22 = '^f22'; pfk23 = '^f23'; pfk24 = '^f24';
        !            45: 
        !            46:     # program attention keys
        !            47:     pa1 = '^p1';
        !            48:     pa2 = '^p2';
        !            49:     pa3 = '^p3';
        !            50: 
        !            51:     # other keys
        !            52:     cursel = '\E.';
        !            53: 
        !            54:     # local control keys
        !            55: 
        !            56:     reset = '^t';      # well, there is a little confusion here...
        !            57:     master_reset = '^g';
        !            58:     flinp = '^x';
        !            59:     reshow = '^v';     # redisplay screen 
        !            60:     escape = '^c';     # escape to telnet command mode
        !            61: 
        !            62:     # local editing keys
        !            63:     settab = '\E;';
        !            64:     clrtab = '\E+';
        !            65:     setmrg = '\E(';
        !            66:     sethom = '\E!';
        !            67:     coltab = '\Ei';
        !            68:     colbak = '\Eb';
        !            69:     indent = '\El';
        !            70:     undent = '\Eh';
        !            71: 
        !            72: } # end of adm3a
        !            73: 
        !            74: 920c | tvi920c {       # tvi920c definitions...
        !            75: 
        !            76:     # command keys
        !            77:     enter = '^m';
        !            78:     clear = '^z';
        !            79: 
        !            80:     # cursor movement keys
        !            81:     nl = '^^';
        !            82:     tab = '^i';
        !            83:     btab = '^b';
        !            84:     left = '^h';
        !            85:     right = '^l';
        !            86:     up = '^k';
        !            87:     down = '^j';
        !            88:     home = '^@';
        !            89: 
        !            90:     # edit control keys
        !            91:     delete = '^?' | '^d';
        !            92:     eeof = '^e';
        !            93:     einp = '^w';
        !            94:     insrt = '\E ';
        !            95:     dp = '^u';
        !            96:     fm = '^y';
        !            97: 
        !            98:     # program function keys
        !            99:     pfk1 = '^a@^m'; pfk2 = '^aA^m'; pfk3 = '^aB^m'; pfk4 = '^aC^m';
        !           100:     pfk5 = '^aD^m'; pfk6 = '^aE^m'; pfk7 = '^aF^m'; pfk8 = '^aG^m';
        !           101:     pfk9 = '^aH^m'; pfk10 = '^aI^m'; pfk11 = '^aJ^m' | '\E^a@^m';
        !           102:                                                pfk12 = '^aj^m' | '\E^aA^m';
        !           103:     pfk13 = '\E^aB^m'; pfk14 = '\E^aC^m'; pfk15 = '\E^aD^m'; pfk16 = '\E^aE^m';
        !           104:     pfk17 = '\E^aF^m'; pfk18 = '\E^aG^m'; pfk19 = '\E^aH^m'; pfk20 = '\E^aI^m';
        !           105:     pfk21 = '\E^a`^m'; pfk22 = '\E^aa^m'; pfk23 = '\E^ab^m'; pfk24 = '\E^ac^m';
        !           106: 
        !           107:     # program attention keys
        !           108: 
        !           109:     pa1 = '^a`^m';
        !           110:     pa2 = '^aa^m';
        !           111:     pa3 = '^ab^m';
        !           112: 
        !           113:     # miscellaneous 3270 keys
        !           114: 
        !           115:     cursel = '\E.';
        !           116: 
        !           117:     # local control keys
        !           118: 
        !           119:     reset = '^t';              # there is some confusion here...
        !           120:     master_reset = '^g';
        !           121:     flinp = '^x';
        !           122:     reshow = '^v';
        !           123:     escape = '^c';     # escape to telnet command mode
        !           124: 
        !           125:     # local editing keys
        !           126: 
        !           127:     settab = '\E;';
        !           128:     clrtab = '\E:';
        !           129:     setmrg = '\E*';
        !           130:     sethom = '\E!';
        !           131:     coltab = '\Ei' | '\EI';
        !           132:     colbak = '\Eb' | '\EB';
        !           133:     indent = '\El' | '\EL';
        !           134:     undent = '\Eh' | '\EH';
        !           135: } # end of tvi920c table...
        !           136: 
        !           137: 925 | tvi925 | 925vb | tvi925vb | televideo 925 {
        !           138: 
        !           139:     # command keys
        !           140: 
        !           141:     enter = '^m';
        !           142:     clear = '^z';
        !           143: 
        !           144:     # cursor movement keys
        !           145: 
        !           146:     nl = '^j';
        !           147:     tab = '^i';
        !           148:     btab = '\EI';
        !           149:     left = '^h';
        !           150:     right = '^l';
        !           151:     up = '^k';
        !           152:     down = '^v';
        !           153:     home = '^^';
        !           154: 
        !           155:     # edit control keys
        !           156: 
        !           157:     delete = '^?';     # that's rubout...
        !           158:     eeof = '^e';
        !           159:     einp = '^w';
        !           160:     insrt = '\E ' | '\EW';
        !           161: 
        !           162:     # program function keys
        !           163: 
        !           164:     pfk1 = '^a@^m';
        !           165:     pfk2 = '^aA^m';
        !           166:     pfk3 = '^aB^m';
        !           167:     pfk4 = '^aC^m';
        !           168:     pfk5 = '^aD^m';
        !           169:     pfk6 = '^aE^m';
        !           170:     pfk7 = '^aF^m';
        !           171:     pfk8 = '^aG^m';
        !           172:     pfk9 = '^aH^m';
        !           173:     pfk10 = '^aI^m';
        !           174:     pfk11 = '^aJ^m';
        !           175:     pfk12 = '\EQ';
        !           176:     pfk13 = '\E^a@^m';
        !           177:     pfk14 = '\E^aA^m';
        !           178:     pfk15 = '\E^aB^m';
        !           179:     pfk16 = '\E^aC^m';
        !           180:     pfk17 = '\E^aD^m';
        !           181:     pfk18 = '\E^aE^m';
        !           182:     pfk19 = '\E^aF^m';
        !           183:     pfk20 = '\E^aG^m';
        !           184:     pfk21 = '\E^aH^m';
        !           185:     pfk22 = '\E^aI^m';
        !           186:     pfk23 = '\E^aJ^m';
        !           187:     pfk24 = '\E\EQ';
        !           188: 
        !           189:     # program attention keys
        !           190: 
        !           191:     pa1 = '^a`^m';
        !           192:     pa2 = '^aa^m';
        !           193:     pa3 = '^ab^m';
        !           194: 
        !           195:     # other keys
        !           196: 
        !           197:     # local control keys
        !           198: 
        !           199:     reset = '^t';              # again, there is some confusion here...
        !           200:     master_reset = '^g';
        !           201:     flinp = '^x';
        !           202:     reshow = '^b';
        !           203:     escape = '^c';     # escape to telnet command mode
        !           204: 
        !           205: # local editing keys
        !           206: 
        !           207:     settab = '\EY';
        !           208:     deltab = '\Ey';
        !           209:     clrtab = '\E:';
        !           210:     setmrg = '\ET';
        !           211:     sethom = '\Et';
        !           212:     coltab = '^p';
        !           213:     colbak = '^o';
        !           214:     indent = '\ER';
        !           215:     undent = '\EE';
        !           216: }
        !           217: 
        !           218: 
        !           219: 924 | tvi924 {
        !           220: 
        !           221:     # command keys
        !           222: 
        !           223:     enter = '^m';
        !           224:     clear = '^z';
        !           225: 
        !           226:     # cursor movement keys
        !           227: 
        !           228:     nl = '^j';
        !           229:     tab = '^i';
        !           230:     btab = '\EI';
        !           231:     left = '^h';
        !           232:     right = '^l';
        !           233:     up = '^k';
        !           234:     down = '^v';
        !           235:     home = '^^';
        !           236: 
        !           237:     # edit control keys
        !           238: 
        !           239:     delete = '^?';     # that's rubout...
        !           240:     eeof = '^e';
        !           241:     einp = '^w';
        !           242:     insrt = '\E ' | '\EW';
        !           243:     dp = '^u';
        !           244:     fm = '^y';
        !           245: 
        !           246:     # program function keys
        !           247: 
        !           248:     pfk1 = '^a@^m';
        !           249:     pfk2 = '^aA^m';
        !           250:     pfk3 = '^aB^m';
        !           251:     pfk4 = '^aC^m';
        !           252:     pfk5 = '^aD^m';
        !           253:     pfk6 = '^aE^m';
        !           254:     pfk7 = '^aF^m';
        !           255:     pfk8 = '^aG^m';
        !           256:     pfk9 = '^aH^m';
        !           257:     pfk10 = '^aI^m';
        !           258:     pfk11 = '^aJ^m';
        !           259:     pfk12 = '^aK^m';
        !           260:     pfk13 = '\E^a@^m';
        !           261:     pfk14 = '\E^aA^m';
        !           262:     pfk15 = '\E^aB^m';
        !           263:     pfk16 = '\E^aC^m';
        !           264:     pfk17 = '\E^aD^m';
        !           265:     pfk18 = '\E^aE^m';
        !           266:     pfk19 = '\E^aF^m';
        !           267:     pfk20 = '\E^aG^m';
        !           268:     pfk21 = '\E^aH^m';
        !           269:     pfk22 = '\E^aI^m';
        !           270:     pfk23 = '\E^aJ^m';
        !           271:     pfk24 = '\E^aK^m';
        !           272: 
        !           273:     # program attention keys
        !           274: 
        !           275:     pa1 = '^a`^m';
        !           276:     pa2 = '^aa^m';
        !           277:     pa3 = '^ab^m';
        !           278: 
        !           279:     # other keys
        !           280: 
        !           281:     # local control keys
        !           282: 
        !           283:     reset = '^t';              # again, there is some confusion here...
        !           284:     master_reset = '^g';
        !           285:     flinp = '^x';
        !           286:     reshow = '^b';
        !           287:     escape = '^c';     # escape to telnet command mode
        !           288: 
        !           289:     # local editing keys
        !           290: 
        !           291:     settab = '\EY';
        !           292:     deltab = '\Ey';
        !           293:     clrtab = '\E:';
        !           294:     setmrg = '\ET';
        !           295:     sethom = '\Et';
        !           296:     coltab = '^p';
        !           297:     colbak = '^o';
        !           298:     indent = '\ER';
        !           299:     undent = '\EE';
        !           300: }
        !           301: 
        !           302: #kb | h19 | heath | h19b | heathkit | heath-19 | z19 | zenith {
        !           303:  kb | h19 | heath | h19b | heathkit | z19 | zenith {  #coughs on heath-19
        !           304: enter = '^m';
        !           305: clear = '^z';
        !           306: 
        !           307: nl = '^n' | '^?';
        !           308: tab = '^i';
        !           309: btab = '^b';
        !           310: left = '^h';
        !           311: right = '^l';
        !           312: up = '^k';
        !           313: down = '^j';
        !           314: home = '^@';
        !           315: 
        !           316: delete = '^d';
        !           317: eeof = '^e';
        !           318: einp = '^w';
        !           319: insrt = '\E ';
        !           320: 
        !           321: # pf keys
        !           322: pfk1 = '\E?p\E?q'; pfk2 = '\E?p\E?r'; pfk3 = '\E?p\E?s'; pfk4 = '\E?p\E?t';
        !           323: pfk5 = '\E?p\E?u'; pfk6 = '\E?p\E?v'; pfk7 = '\E?p\E?w'; pfk8 = '\E?p\E?x';
        !           324: pfk9 = '\E?p\E?y'; pfk10 = '\E?q\E?p'; pfk11 = '\E?q\E?q'; pfk12 = '\E?q\E?r';
        !           325: pfk13 = '\E?q\E?s'; pfk14 = '\E?q\E?t'; pfk15 = '\E?q\E?u'; pfk16 = '\E?q\E?v';
        !           326: pfk17 = '\E?q\E?w'; pfk18 = '\E?q\E?x'; pfk19 = '\E?q\E?y'; pfk20 = '\E?r\E?p';
        !           327: pfk21 = '\E?r\E?q'; pfk22 = '\E?r\E?r'; pfk23 = '\E?r\E?s'; pfk24 = '\E?r\E?t';
        !           328: 
        !           329: # program attention keys
        !           330: pa1 = '\EP';
        !           331: pa2 = '\EQ';
        !           332: pa3 = '\ER';
        !           333: 
        !           334: # other keys
        !           335: # cursel = '\E.'; # find out what this does
        !           336: master_reset = '^g';
        !           337: 
        !           338: # local control keys
        !           339: 
        !           340: reset = '^t';  # well, there is a little confusion here...
        !           341: flinp = '^x';
        !           342: reshow = '^v'; # redisplay screen 
        !           343: escape = '^c'; # escape to telnet command mode
        !           344: 
        !           345: # local editing keys
        !           346: settab = '\E;';
        !           347: clrtab = '\E:';
        !           348: setmrg = '\E\'';
        !           349: sethom = '\E!';
        !           350: coltab = '\Ei';
        !           351: colbak = '\Eb';
        !           352: indent = '\El';
        !           353: undent = '\Eh';
        !           354: 
        !           355: } # end of h19
        !           356: 
        !           357: 
        !           358: #co | c100 | concept | c100-4p | concept100 {
        !           359: co | c100 | concept | concept100 {  # coughs on c100-4p
        !           360: enter = '^m';
        !           361: clear = '^z' | '^\2';
        !           362: 
        !           363: nl = '^n';
        !           364: tab = '^i';
        !           365: btab = '^b';
        !           366: left = '^h' | '\E>';
        !           367: right = '^l' | '\E=';
        !           368: up = '^k' | '\E;';
        !           369: down = '^j' | '\E<';
        !           370: home = '\E?';
        !           371: 
        !           372: delete = '^d' | '^?' | '^\1';
        !           373: eeof = '^e' | '^\3';
        !           374: einp = '^w';
        !           375: insrt = '^\0';
        !           376: 
        !           377: # pf keys
        !           378: pfk1 = '\E\E1' | '^\5'; pfk2 = '\E\E2' | '^\6'; pfk3 = '\E\E3' | '^\7';
        !           379: pfk4 = '\E\E4' | '^\8'; pfk5 = '\E\E5' | '^\9'; pfk6 = '\E\E6' | '^\:';
        !           380: pfk7 = '\E\E7' | '^\;'; pfk8 = '\E\E8' | '^\<'; pfk9 = '\E\E9' | '^\=';
        !           381: pfk10 = '\E\E0' | '^\>'; pfk11 = '\E\E-' | '^\?'; pfk12 = '^\@';
        !           382: pfk13 = '^\A'; pfk14 = '^\B'; pfk15 = '^\)'; pfk16 = '^\*';
        !           383: pfk17 = '^\+'; pfk18 = '^\,'; pfk19 = '^\-'; pfk20 = '^\.';
        !           384: pfk21 = '^\/'; pfk22 = '^\C'; pfk23 = '^\D'; pfk24 = '^\E';
        !           385: 
        !           386: # program attention keys
        !           387: pa1 = '^\%';
        !           388: pa2 = '^\&' | '\E+';
        !           389: pa3 = '^\\'';
        !           390: 
        !           391: # other keys
        !           392: cursel = '\E.'; 
        !           393: aplon = '\E{';
        !           394: aplend = '\E}';
        !           395: aploff = '\E_';
        !           396: master_reset = '^g';
        !           397: 
        !           398: # local control keys
        !           399: 
        !           400: reset = '^t';  # well, there is a little confusion here...
        !           401: flinp = '^x';
        !           402: reshow = '^v'; # redisplay screen 
        !           403: escape = '^c'; # escape to telnet command mode
        !           404: 
        !           405: # local editing keys
        !           406: settab = '\E\E;';
        !           407: clrtab = '\E\E:';
        !           408: setmrg = '\E\E*';
        !           409: sethom = '\E\E!';
        !           410: coltab = '\E\Ei';
        !           411: colbak = '\E\Eb';
        !           412: indent = '\E\El';
        !           413: undent = '\E\Eh';
        !           414: 
        !           415: } # end of concept
        !           416: avt | vt100 | vt100nam | pt100 | vt125 | vt102 | direct831 {
        !           417: enter = '^m';
        !           418: clear = '^z' | '\EOM';
        !           419: 
        !           420: nl = '^?';
        !           421: tab = '^i';
        !           422: btab = '^b';
        !           423: left = '^h' | '\E[D';
        !           424: right = '^l' | '\E[C';
        !           425: up = '^k' | '\E[A';
        !           426: down = '^j' | '\E[B';
        !           427: home = '\EOn';
        !           428: 
        !           429: delete = '^d';
        !           430: eeof = '^e';
        !           431: einp = '^w';
        !           432: insrt = '^ ';
        !           433: 
        !           434: # pf keys
        !           435: pfk1 = '\EOq' | '\E1'; pfk2 = '\EOr' | '\E2'; pfk3 = '\EOs' | '\E3';
        !           436: pfk4 = '\EOt' | '\E4'; pfk5 = '\EOu' | '\E5'; pfk6 = '\EOv' | '\E6';
        !           437: pfk7 = '\EOw' | '\E7'; pfk8 = '\EOx' | '\E8'; pfk9 = '\EOy' | '\E9';
        !           438: pfk10 = '\EOP\EOp' | '\E0'; pfk11 = '\EOP\EOq' | '\E-';
        !           439: pfk12 = '\EOP\EOr' | '\E='; pfk13 = '\EOP\EOs' | '^f13';
        !           440: pfk14 = '\EOP\EOt' | '^f14'; pfk15 = '\EOP\EOu' | '^f15';
        !           441: pfk16 = '\EOP\EOv' | '^f16'; pfk17 = '\EOP\EOw' | '^f17';
        !           442: pfk18 = '\EOP\EOx' | '^f18'; pfk19 = '\EOP\EOy' | '^f19';
        !           443: pfk20 = '\EOQ\EOp' | '^f20'; pfk21 = '\EOQ\EOq' | '^f21';
        !           444: 
        !           445: # program attention keys
        !           446: pa1 = '\E\EOP' | '^p1';
        !           447: pa2 = '\E\EOQ' | '^p2';
        !           448: 
        !           449: # local control keys
        !           450: 
        !           451: reset = '^t';  # well, there is a little confusion here...
        !           452: flinp = '^x';
        !           453: reshow = '^v'; # redisplay screen 
        !           454: escape = '^c'; # escape to telnet command mode
        !           455: master_reset = '^g';
        !           456: 
        !           457: # local editing keys
        !           458: settab = '\E;';
        !           459: deltab = '\E\'';
        !           460: clrtab = '\E:';
        !           461: setmrg = '\E,';
        !           462: sethom = '\E.';
        !           463: coltab = '\E\E[B';
        !           464: colbak = '\E\E[A';
        !           465: indent = '\E\E[C';
        !           466: undent = '\E\E[D';
        !           467: }    # end of vt100, etc.
        !           468: 
        !           469: tvipt | vp | televideopt {
        !           470:     enter = '^m';
        !           471:     clear = '^z';
        !           472: 
        !           473:  nl = '^n';
        !           474:     tab = '^i';
        !           475:     btab = '^b';
        !           476:     left = '^h';
        !           477:     right = '^l';
        !           478:     up = '^k';
        !           479:     down = '^j';
        !           480:     home = '^^';
        !           481: 
        !           482:     delete = '^?';
        !           483:     eeof = '^e';
        !           484:     einp = '^w';
        !           485:     insrt = '\E ';
        !           486: 
        !           487:     # pf keys
        !           488:     pfk1 = '\E1' | '^A@^m';            
        !           489:     pfk2 = '\E2' | '^AA^m';
        !           490:     pfk3 = '\E3' | '^AB^m'; 
        !           491:     pfk4 = '\E4' | '^AC^m';
        !           492:     pfk5 = '\E5' | '^AD^m';
        !           493:     pfk6 = '\E6' | '^AE^m'; 
        !           494:     pfk7 = '\E7' | '^AF^m';
        !           495:     pfk8 = '\E8';
        !           496:     pfk9 = '\E9';
        !           497:     pfk10 = '\E0';
        !           498:     pfk11 = '\E!' | '\E^A@^m';
        !           499:     pfk12 = '\E@' | '\E^AA^m';
        !           500:     pfk13 = '\E#' | '\E^AB^m';
        !           501:     pfk14 = '\E$' | '\E^AC^m';
        !           502:     pfk15 = '\E%' | '\E^AD^m';
        !           503:     pfk16 = '\E^AE^m' | '\E\^';
        !           504:     pfk17 = '\E&' | '\E^AF^m';
        !           505:     pfk18 = '\E*'; 
        !           506:     pfk19 = '\E(';
        !           507:     pfk20 = '\E)';
        !           508: 
        !           509:     # program attention keys
        !           510:     pa1 = '^AG^m';
        !           511:     pa2 = '^AH^m';
        !           512:     pa3 = '^AI^m';
        !           513: 
        !           514:     # other keys
        !           515: #    # cursel = '\E.';
        !           516: 
        !           517:     # local control keys
        !           518: 
        !           519:     reset = '^t';      # well, there is a little confusion here...
        !           520:     master_reset = '^g';
        !           521:     flinp = '^x';
        !           522:     reshow = '^v';     # redisplay screen 
        !           523:     escape = '^c';     # escape to telnet command mode
        !           524: 
        !           525:     # local editing keys
        !           526:     settab = '\E;';
        !           527:     clrtab = '\E:';
        !           528:     setmrg = '\E[';
        !           529:     sethom = '\E+';
        !           530:     coltab = '\Ei' | '\EI';
        !           531:     colbak = '\Eb' | '\EB';
        !           532:     indent = '\El' | '\EL';
        !           533:     undent = '\Eh' | '\EH';
        !           534: } # end of tvipt

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.