|
|
1.1 root 1: # # --------------------------------
2: # @(#)dec.ti 1.2 (1.13 9/13/82)
3: #
4: # dec: DEC (DIGITAL EQUIPMENT CORPORATION)
5: #
6: # Note that xenl glitch in vt100 is not quite the same as concept,
7: # since the cursor is left in a different position while in the
8: # weird state (concept at beginning of next line, vt100 at end
9: # of this line) so all versions of vi before 3.7 don't handle
10: # xenl right on vt100. The correct way to handle xenl is when
11: # you output the char in column 80, immediately output CR LF
12: # and then assume you are in column 1 of the next line. if xenl
13: # is on, am should be on too.
14: # I assume you have smooth scroll off or are at a slow enough baud
15: # rate that it doesn't matter (1200? or less). Also this assumes
16: # that you set auto-nl to "on", if you set it off use vt100-nam below.
17: #
18: # Since there are two things here called vt100, the installer can make
19: # a local decision to make either one standard "vt100" by including
20: # it in the list of terminals in reorder, since the last vt100 in
21: # this file is the one that will be left around. The choice is between
22: # nam (no automatic margins) and am (automatic margins), as determined
23: # by the wrapline switch (group 3 #2). I presonally recommend turning
24: # on the bit and using vt100-am, since having stuff hammer on the right
25: # margin is sort of hard to read. However, the xenl glitch does not occur
26: # if you turn the bit off.
27: #
28: # The padding requirements listed here are guesses. It is strongly
29: # recommended that xon/xoff be enabled, as this is assumed here.
30: #
31: # The vt100 uses rs2 and rf rather than is2/tbc/hts because the tab settings
32: # are in non-volatile memory and don't need to be reset upon login.
33: # Also setting the number of columns glitches the screen annoyingly.
34: # You can type "reset" to get them set.
35: #
36: # Vanilla vt100 definitions.
37: vt100|vt100-am|dec vt100,
38: cr=^M, cud1=^J, ind=^J, bel=^G, cols#80, lines#24, it#8,
39: clear=\E[H\E[2J$<50>, cub1=^H, am, cup=\E[%i%p1%d;%p2%dH$<5>,
40: cuf1=\E[C$<2>, cuu1=\E[A$<2>, el=\E[K$<3>, ed=\E[J$<50>,
41: cud=\E[%p1%dB, cuu=\E[%p1%dA, cub=\E[%p1%dD, cuf=\E[%p1%dC,
42: smso=\E[7m$<2>, rmso=\E[m$<2>, smul=\E[4m$<2>, rmul=\E[m$<2>,
43: bold=\E[1m$<2>, rev=\E[7m$<2>, blink=\E[5m$<2>, sgr0=\E[m$<2>,
44: sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m,
45: rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smkx=\E[?1h\E=, rmkx=\E[?1l\E>,
46: tbc=\E[3g, hts=\EH, home=\E[H,
47: kcuu1=\EOA, kcud1=\EOB, kcuf1=\EOC, kcub1=\EOD, kbs=^H,
48: kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, ht=^I, ri=\EM$<5>,
49: vt#3, xenl, xon, sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
50: vt100|vt100-nam|vt100 w/no am,
51: am@, xenl@, use=vt100-am,
52: # Ordinary vt100 in 132 column ("wide") mode.
53: vt100-w|vt100-w-am|dec vt100 132 cols (w/advanced video),
54: cols#132, lines#24, rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am,
55: vt100-w-nam|vt100-nam-w|dec vt100 132 cols (w/advanced video),
56: cols#132, lines#24, rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, vt@, use=vt100-nam,
57: # vt100's with no advanced video.
58: vt100-nav|vt100 without advanced video option,
59: sgr@, smso=\E[7m , rmso=\E[m , xmc#1,
60: smul@, rmul@, bold@, rev@, blink@, sgr0@, use=vt100,
61: vt100-nav-w|vt100-w-nav|dec vt100 132 cols 14 lines (no advanced video option),
62: lines#14, cols#132, use=vt100-nav,
63: # vt100's with one of the 24 lines used as a status line.
64: # We put the status line on the top.
65: vt100-s|vt100-s-top|vt100-top-s|vt100 for use with sysline,
66: lines#23, is2=\E7\E[2;24r\E8, clear=\E[2;1H\E[J$<50>, home=\E[2;1H,
67: dsl=\E7\E[1;24r\E8,
68: cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, csr=\E[%i%i%p1%d;%p2%dr,
69: hs, eslok, tsl=\E7\E[1;%p1%dH\E[1K, fsl=\E8, use=vt100-am,
70: # Status line at bottom. Clearing the screen will clobber status line.
71: vt100-s-bot|vt100-bot-s|vt100 for use with sysline,
72: lines#23, is2=\E[1;23r\E[23;1H, dsl=\E7\E[1;24r\E8,
73: hs, eslok, tsl=\E7\E[24;%p1%dH\E[1K, fsl=\E8, use=vt100-am,
74: # vt132 - like vt100 but slower and has ins/del line and such.
75: vt132|vt132,
76: il1=\E[L$<99>, dl1=\E[M$<99>, ip=$<7>, dch1=\E[P$<7>, rmir=\E[4l,
77: smir=\E[4h, xenl, ind=^J$<30>, use=vt100,
78: # Older DEC CRT's
79: vt50|dec vt50,
80: cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, ed=\EJ, el=\EK, clear=\EH\EJ,
81: cols#80, lines#12, cuf1=\EC, ht=^I, cuu1=\EA,
82: vt50h|dec vt50h,
83: cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, ed=\EJ, el=\EK,
84: clear=\EH\EJ, cup=\EY%p1%' '%+%c%p2%' '%+%c, cols#80, lines#12,
85: cuf1=\EC, ht=^I, ri=\EI, cuu1=\EA,
86: vt52|dec vt52,
87: cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, ed=\EJ, el=\EK,
88: clear=\EH\EJ, cup=\EY%p1%' '%+%c%p2%' '%+%c, cols#80, lines#24,
89: cuf1=\EC, ht=^I, it#8, ri=\EI, cuu1=\EA,
90: kcuu1=\EA, kcud1=\EB, kcuf1=\EC, kcub1=\ED, kbs=^H,
91: # Graphics CRT's.
92: # clear screen also erases graphics
93: vt125|vt125 graphics terminal,
94: clear=\E[;H\E[2J\EPpS(E)\E\\$<50>, use=vt100,
95: gt40|dec gt40,
96: cr=^M, cud1=^J, bel=^G,
97: cub1=^H, cols#72, lines#30, os,
98: gt42|dec gt42,
99: cr=^M, cud1=^J, bel=^G,
100: cub1=^H, cols#72, lines#40, os,
101: # The gigi does standout with red!
102: gigi|vk100|dec gigi graphics terminal,
103: cr=^M, cud1=^J, ind=^J, bel=^G, cols#84, lines#24, am,
104: clear=\E[;H\E[2J, cub1=^H, cup=\E[%i%p1%d;%p2%dH, cuf1=\E[C,
105: cuu1=\E[A, el=\E[K, ed=\E[J, smso=\E[7;31m, rmso=\E[m,
106: smul=\E[4m, rmul=\E[m,
107: is2=\E>\E[?3l\E[?4l\E[?5l\E[?20l\E[?7h\E[?8h, smkx=\E[?1h\E=,
108: rmkx=\E[?1l\E>, kcuu1=\EOA,
109: kcud1=\EOB, kcuf1=\EOC, kcub1=\EOD, khome=\E[H, kf1=\EOP,
110: kf2=\EOQ, kf3=\EOR, kf4=\EOS, ht=^I, ri=\EM, xenl, cud=\E[%p1%dB,
111: cuu=\E[%p1%dA, cub=\E[%p2%dD, cuf=\E[%p1%dC,
112: #
113: # Hard copy (decwriter) dec terminals.
114: dw1|decwriter I,
115: cr=^M, cud1=^J, ind=^J, bel=^G,
116: cub1=^H, cols#72, hc, os,
117: dw2|decwriter|dw|decwriter II,
118: cr=^M, cud1=^J, ind=^J, bel=^G, kbs=^H, cub1=^H, cols#132, hc, os,
119: # \E(B Use U.S. character set (otherwise # => british pound !)
120: # \E[20l Disable "linefeed newline" mode (otherwise puts \r after \n,\f,\(vt )
121: # \E[w 10 char/in pitch
122: # \E[1;132 full width horizontal margins
123: # \E[2g clear all tab stops
124: # \E[z 6 lines/in
125: # \E[66t 66 lines/page (for \f)
126: # \E[1;66r full vertical page can be printed
127: # \E[4g clear vertical tab stops
128: # \E> disable alternate keypad mode (so it transmits numbers!)
129: # \E[%i%du set tab stop at column %d (origin == 1)
130: # (Full syntax is2 \E[n;n;n;n;n;...;nu where each 'n' is2 a tab stop)
131: # The dw3 does standout with wide characters.
132: dw3|la120|decwriter III,
133: cr=^M, cud1=^J, ind=^J, bel=^G, kbs=^h, cub1=^H, cols#132, hc,
134: os, smso=\E[6w, rmso=\E[w, ht=^I,
135: is1=\E(B\E[20l\E[w\E[0;132s\E[2g\E[z\E[66t\E[1;66r\E[4g\E>,
136: is2=\E[9;17;25;33;41;49;57;65;73;81;89;97;105;113;121;129u\r,
137: dw4|decwriter IV,
138: cr=^M, cud1=^J, ind=^J, bel=^G, cub1=^H, cols#132, hc, os, am,
139: ht=^I, is2=\Ec, kf0=\EOP, kf1=\EOQ, kf2=\EOR, kf3=\EOS, kbs=^H,
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.