4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
26 #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.21 */
27 #
\f# --------------------------------
31 # Manufacturer: HEWLETT PACKARD
35 # Generic HP terminal - this should (hopefully) work on any HP
38 hp|hewlett-packar|hewlettpackard,
39 tbc=\E3, hts=\E1, cr=^M, cud1=^J, ind=^J, bel=^G, il1=\EL, am,
40 cub1=^H, ed=\EJ, el=\EK, hpa=\E&a%p1%dC, clear=\EH\EJ,
41 cup=\E&a%p2%dc%p1%dY$<6>, cols#80, vpa=\E&a%p1%dY, lm#0, da, db,
42 dch1=\EP, dl1=\EM, rmir=\ER, smir=\EQ, kbs=^H, lines#24, mir,
43 cuf1=\EC, ht=^I, rmso=\E&d@, smso=\E&dJ,
44 smul=\E&dD, rmul=\E&d@, cuu1=\EA, xhp, vt#6, kcbt=\Ei,
46 hp110|hewlett-packard model 110 portable,
49 hp+pfk+cr|hp function keys with CR,
50 kf1=\Ep\r, kf2=\Eq\r, kf3=\Er\r, kf4=\Es\r,
51 kf5=\Et\r, kf6=\Eu\r, kf7=\Ev\r, kf8=\Ew\r,
53 hp+pfk-cr|hp function keys w/o CR,
54 kf1=\Ep, kf2=\Eq, kf3=\Er, kf4=\Es,
55 kf5=\Et, kf6=\Eu, kf7=\Ev, kf8=\Ew,
58 # The 2621's use the same keys for the arrows and function keys,
59 # but not separate escape sequences. These definitions allow the
60 # user to use those keys as arrow keys rather than as function
63 hp+pfk+arrows|hp alternate arrow definitions,
64 khome=\Ep\r, kll=\Eq\r, kind=\Er\r, kri=\Es\r,
65 kcuu1=\Et\r, kcub1=\Eu\r, kcuf1=\Ev\r, kcud1=\Ew\r,
66 kf1@, kf2@, kf3@, kf4@, kf5@, kf6@, kf7@, kf8@,
68 hp+arrows|hp arrow definitions,
69 kcuu1=\EA, kcud1=\EB, kcub1=\ED, kcuf1=\EC,
70 khome=\Eh, kll=\EF, kind=\ES, kri=\ET,
73 # Generic stuff from the HP 262x series
76 dch1=\EP$<2>, ip=$<2>, rmso=\E&d@, smso=\E&dB, ed=\ED\EJ$<500>\EC,
77 rev=\E&dB, smul=\E&dD, blink=\E&dA, invis=\E&dS, sgr0=\E&d@, rmul=\E&d@,
78 sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%c,
79 khome=\Eh, kcuu1=\EA, kcub1=\ED, kcuf1=\EC, kcud1=\EB,
80 smkx=\E&s1A, rmkx=\E&s0A, knp=\EU, kpp=\EV, kri=\ET,
81 kind=\ES, kil1=\EL, kdl1=\EM, kich1=\EQ, kdch1=\EP,
82 kel=\EK, ked=\EJ, krmir=\ER,
83 ind=\ES, ht=^I$<2>, xhp,
86 # Note: no "home" on HP's since that homes to top of memory, not
89 # The only way to get the arrow keys to transmit anything at all
90 # is to turn on the function key labels (f1-f8) with smkx, and
91 # even then the user has to hold down shift!
93 # The default 2621 turns off the labels except when it has to to
94 # enable the function keys. If your installation prefers labels
95 # on all the time, or off all the time (at the "expense" of the
96 # function keys) move the # 2621-nl or 2621-wl labels to the
97 # front using reorder.
99 # Note: there are newer ROM's for 2621's that allow you to set
100 # strap A so the regular arrow keys xmit \EA, etc, as with the
101 # 2645. However, even with this strap set, the terminal stops
102 # xmitting if you reset it, until you unset and reset the strap!
103 # Since there is no way to set/unset the strap with an escape
104 # sequence, we don't use it in the default.
106 # If you like, you can use 2621-ba (bad arrow keys).
108 hp2621-ba|2621-ba|2621 w/new rom and strap A set,
114 # 2621 with function labels. Most of the time they are off,
115 # but inside vi, the function key labels appear. You have to
116 # hold down shift to get them to xmit.
118 hp2621|hp2621a|hp2621A|2621|2621a|2621A|hp2621-wl|2621-wl|hp 2621 w/labels,
119 is2=\E&jA\r, rmkx=\E&jA, use=hp2621-fl,
122 # 2621 with function labels. Most of the time they are off,
123 # but inside vi, the function key labels appear. You have to
124 # hold down shift to get them to xmit.
126 hp2621-fl|2621-fl|hp 2621,
127 is2=\E&j@\r, cbt=\Ei, cup=\E&a%p2%dc%p1%dY,
128 dch1=\EP$<2>, ip=$<2>, pb#19200,
129 smso=\E&dD, rmso=\E&d@, smul=\E&dD, rmul=\E&d@, sgr0=\E&d@, xhp@,
130 use=hp+pfk+cr, smkx=\E&jB, rmkx=\E&j@, ht=^I$<2>, xon, use=hp,
133 # To use 2621p printer, setenv TERM=2621p, PRINTER=2612p
135 hp2621p|2621p|2621P|hp 2621 with printer,
136 mc5=\E&p11C, mc4=\E&p13C, use=hp2621,
138 hp2621p-a|2621p-a|hp2621p with fn as arrows,
139 use=hp+pfk+arrows, use=hp2621p,
142 # hp2621 with k45 keyboard
144 hp2621-k45|hp2621k45|2621k45|k45|hp 2621 with 45 keyboard,
145 kbs=^H, kcuu1=\EA, kcud1=\EB, kcub1=\ED, kcuf1=\EC, khome=\Eh,
146 smkx=\E&s1A, rmkx=\E&s0A, use=hp2621,
149 # This terminal should be used at 4800 baud or less. It needs
150 # padding for plain characters at 9600, I guessed at an
151 # appropriate cr delay.
153 # It really wants ^E/^F handshaking, but that doesn't work well
154 # even if you write software to support it.
156 2645|hp2645|hp45|hp 264x series,
157 dim=\E&dH, rev=\E&dB, smul=\E&dD, blink=\E&dA, sgr0=\E&d@,
158 sgr=\E&d%'@'%?%p1%t%'B'%|%;%?%p2%t%'D'%|%;%?%p3%t%'B'%|%;%?%p4%t%'A'%|%;%?%p5%t%'H'%|%;%?%p6%t%'B'%|%;%c,
159 kcuu1=\EA, kcud1=\EB, kcub1=\ED, kcuf1=\EC, khome=\Eh,
161 smkx=\E&s1A, rmkx=\E&s0A, knp=\EU, kpp=\EV, kri=\ET, kind=\ES,
162 kil1=\EL, kdl1=\EM, kich1=\EQ, kdch1=\EP,
163 kel=\EK, ked=\EJ, krmir=\ER, pb#9600, cr=^M$<20>, use=hp,
166 # Hp 2624 B with 4 or 10 pages of memory.
168 # Some assumptions are made with this entry. These settings are
169 # NOT set up by the initialization strings.
176 # Terminal Configuration
182 # Note: the 2624 DOES have a true "home," believe it or not!
184 # The 2624 has an "error line" to which messages can be sent.
185 # This is CLOSE to what is expected for a "status line". However,
186 # after a message is sent to the "error line", the next carriage
187 # return is EATEN and the "error line" is turned back off again!
188 # So I guess we can't define hs, eslok, wsl, dsl, fsl, tsl
190 # This entry supports emacs (and any other program that uses raw
191 # mode) at 4800 baud and less. I couldn't get the padding right
195 hp2624|hp2624a|hp2624b|hp2624b-4p|2624-4p|2624|2624a|2624b|Hewlett Packard 2624 B,
197 flash=\E&w13F\200\200\200\200\E&w12F\200\200\200\200\E&w13F\200\200\200\200\E&w12F,
202 # These attributes are not set above:
204 # civis, cmdch, cnorm, csr, cub, cud, cuf, cuu, cvvis, dch, dl,
205 # ech, eo, eslok, fsl, gn, hc, hd, hu, hz, ich, ich1, if, il, in,
206 # indn, iprog, is2, is3, it, ka1, ka3, kb2, kc1, kc3, kclr, kf0,
207 # kf10, khts, km, ktbc, lf0, lf1, lf10, lf2, lf3, lf4, lf5, lf6,
208 # lf7, lf8, lf9, mc5p, os, pad, pfkey*, pfloc*, pfx*, prot, rc,
209 # rep, rin, rmcup, rmdc, rmm, rs2, rs3, sc, smcup, smdc, smm, tsl,
210 # uc, ul, vt, wind, wsl, xenl, xmc, xsb, xt
212 # not needed if tset is used:
213 # if=/usr/share/lib/tabset/std,
215 # This 2626 entry does not use any of the fancy windowing stuff
218 # Indeed, terminfo does not yet handle such stuff. Since changing
219 # any window clears memory, it is probably not possible to use
220 # this for screen opt.
222 # ed is incredibly slow most of the time - I am guessing at the
223 # exact padding. Since the terminal uses xoff/xon this is intended
224 # only for cost computation, so that the terminal will prefer el
225 # or even dl1 which is probably faster!
227 # \ED\EJ\EC hack for ed from Ed Bradford - apparently ed is only
228 # extra slow # on the last line of the window.
230 # The padding probably should be changed.
232 hp2626|hp2626a|hp2626p|2626|2626a|2626p|2626A|2626P|hp 2626,
245 # This entry is for sysline. It allocates a 23 line window with
246 # a 115 line workspace for regular use, and a 1 line window for
249 # This assumes port 2 is being used.
250 # Turn off horizontal line, Create ws #1 with 115 lines,
251 # Create ws #2 with 1 line, Create window #1 lines 1-23,
252 # Create window #2 lines 24-24, Attach cursor to workspace #1.
253 # Note that this clears the tabs so it must be done by tset before
256 hp2626-s|2626-s|hp 2626 using only 23 lines,
257 tsl=\E&w7f2p2I\E&w4f2I\r\EK\E&a%p1%dC,
258 fsl=\E&d@\E&w7f2p1I\E&w4f1I, eslok, hs,
259 is1=\E&q3t0{0H \E&w0f115n1I \E&w0f1n2I
260 \E&w2f1i0d0u22l0S \E&w2f2i0d23u23l0S \E&w7f2p1I \r,
263 # Force terminal back to 24 lines after being 23.
265 hp2626-ns|2626-ns|hp 2626 using all 24 lines,
266 is1=\E&q3t0{0H \E&w0f118n1I \E&w0f1n2I
267 \E&w2f1i0d0u23l0S \E&w3f2I \E&w7f2p1I \r,
270 # Various entries useful for small windows on 2626.
274 hp2626-12x40|2626-12x40,
275 cols#40, lines#12, use=2626,
278 hp2626-12-s|2626-12-s,
279 lines#11, use=2626-s,
281 # You should use this terminal at 4800 baud or less.
283 hp2648|hp2648a|2648a|2648A|2648|HP 2648a graphics terminal,
284 clear=\EH\EJ$<50>, cup=\E&a%p2%dc%p1%dY$<20>,
285 dch1=\EP$<7>, ip=$<5>, use=2645,
288 # 2640a doesn't have the Y cursor addressing feature, and C is
289 # memory relative instead of screen relative, as we need.
291 2640|hp2640a|2640a|hp 2640a,
292 cup@, smkx@, rmkx@, use=2645,
294 2640b|hp2640b|2644a|hp2644a|hp 264x series,
295 smkx@, rmkx@, use=2645,
298 # 2621 using all 48 lines of memory, only 24 visible at any time.
300 hp2621-48|2621-48|48 line 2621,
301 vpa=\E&a%p1%dR, lines#48, home=\EH, cup=\E&a%p2%dc%p1%dR, use=hp2621,
304 # 2621 with no labels ever. Also prevents vi delays on escape.
306 hp2621-nl|2621-nl|hp 2621 with no labels,
307 smkx@, rmkx@, khome@, kcuu1@, kcub1@, kcuf1@, kcud1@, use=hp2621-fl,
310 # Needed for UCB ARPAVAX console, since lsi-11 expands tabs
313 hp2621-nt|2621-nt|hp 2621 w/no tabs,
317 # The HP 150 terminal is a fairly vanilla HP terminal, with the
318 # clreol standout problem. It also has graphics capabilities and
319 # a touch screen, which we don't describe here.
321 hp150|Hewlett Packard Model 150,
325 # Hp 2382a terminals, "the little ones." They don't have any
326 # alternate character set support and sending out ^N/^O will
327 # leave the screen blank.
329 hp2382a|hp2382|Hewlett Packard 2382a,
331 pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
333 rmacs@, smacs@, acsc@,
335 sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%'@'%+%e%'S'%;%e%?%ga%t%ga%'@'%+%e%'@'%;%;%c,
338 hp2621-a|hp2621a-a|2621-a|hp2621 with fn as arrows,
339 use=hp+pfk+arrows, use=hp2621-fl,
342 # new Hewlett Packard terminals
344 # This entry supports emacs (and any other program that uses raw
345 # mode) at 4800 baud and less. I couldn't get the padding right
349 newhpkeyboard|generic entry for HP extended keyboard,
350 kbs=^H, kcbt=\Ei, kclr=\EJ,
351 kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
352 kdch1=\EP, kdl1=\EM, ked=\EJ, kel=\EK,
354 khome=\Eh, kich1=\EQ, kil1=\EL, kind=\ET, kll=\EF,
355 knp=\EU, kpp=\EV, kri=\ES, krmir=\ER,
356 rmkx=\E&s0A, smkx=\E&s1A,
358 newhp|generic entry for new Hewlett Packard terminals,
359 am, bw, mir, xhp, xon,
360 cols#80, lines#24, pb#4800,
361 acsc=T1R!U2S"W3O#V4P$t5u6w7v8:'9(LQKWlRkT5I3@2[MAJSmFjGdHQ;Y+Z*X:4>q\,x.n/,
362 bel=^G, blink=\E&dA, bold=\E&dF, cbt=\Ei, cr=^M,
363 cub1=^H, cud1=^J, cuf1=\EC, cuu1=\EA,
364 # cub1=\ED, cud1=\EB,
365 dch1=\EP$<2>, dim=\E&dH, dl1=\EM,
366 ed=\EJ, el=\EK, ht=^I$<2>,
367 hts=\E1, il1=\EL, ind=^J, invis=\E&dS, ip=$<2>, is1=\E&jB$<8>,
370 pfkey=\E&f0a%p1%dk0d%p2%l%dL%p2%s,
371 pfloc=\E&f1a%p1%dk0d%p2%l%dL%p2%s,
372 pfx=\E&f2a%p1%dk0d%p2%l%dL%p2%s,
373 rev=\E&dB, ri=\ET, rmacs=^O, rmir=\ER, rmso=\E&d@, rmul=\E&d@,
377 # sgr is figured out as follows:
379 # 1=standout, 2=underlining, 3=reverse video, 4=blinking, 5=dim,
380 # 6=bold, 7=blank, 8=protection, 9=alternate character set
381 # The protection parameter is ignored.
382 # combination parameters
383 # standout = reverse + half-intensity = 3 | 5.
384 # bold = reverse + underline = 2 | 3.
386 sgr=\E&d%{0}%Pa%?%p4%t%{1}%ga%+%Pa%;%?%p1%p3%|%p6%|%t%{2}%ga%+%Pa%;%?%p2%p6%|%t%{4}%ga%+%Pa%;%?%p1%p5%|%t%{8}%ga%+%Pa%;%?%p7%t%?%ga%ts%ga%'@'%+%e%'S'%;%e%?%ga%t%ga%'@'%+%e%'@'%;%;%c%?%p9%t^N%e^O%;,
387 smacs=^N, smir=\EQ, smso=\E&dJ, smul=\E&dD,
391 memhp|memory relative addressing for new HP ttys,
394 cub=\E&a-%p1%dC, cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC, cuu=\E&a-%p1%dR,
395 cup=\E&a%p1%dr%p2%dC, mrcup=\E&a%p1%dr%p2%dC,
396 home=\EH, hpa=\E&a%p1%dC, ll=\E&a23R^M, vpa=\E&a%p1%dR,
399 scrhp|screen relative addressing for new HP ttys,
400 clear=\E&a0x0Y\EJ$<40>,
401 cub=\E&a-%p1%dC, cud=\E&a+%p1%dR, cuf=\E&a+%p1%dC, cuu=\E&a-%p1%dR,
402 cup=\E&a%p1%dy%p2%dX$<10>, mrcup=\E&a%p1%dr%p2%dC,
403 home=\E&a0y0X, hpa=\E&a%p1%dC, ll=\E&a0y0X\EA, vpa=\E&a%p1%dY,
406 hp+labels|"standard" label info for new HP ttys,
408 pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d0L%?%ga%!%t %;%p2%s,
411 hp+printer| "standard" printer info for HP ttys,
412 ff=\E&p4u0C, mc0=\EH\E&p4dF, mc4=\E&p13C, mc5=\E&p11C,
416 # The new hp2621b is kind of a cross between the old 2621 and the
417 # new 262x series of machines. It has dip-switched options.
418 # The firmware has a bug in it such that if you give it a null
419 # length label, the following character is eaten!
422 hp2621b|2621b|hp 2621b with old style keyboard,
423 lm#48, lh#1, lw#8, nlab#8,
424 pln=\E&f0a%p1%dk%p2%l%Pa%?%ga%t%ga%d%e1%;d3L%?%ga%!%t%' '%c%;%p2%s\E%'o'%p1%+%c\r,
426 khome=\Eh, kll=\EF, kri=\ES, kind=\ET,
427 kcuu1=\EA, kcub1=\ED, kcuf1=\EC, kcud1=\EB,
430 hp2621b-p|2621b-p|hp 2621b with printer,
435 # hp2621b - new 2621b's with new extended keyboard
436 # these are closer to the new 26xx series than the other 2621b
438 hp2621b-kx|2621b-kx|hp 2621b with extended keyboard,
442 hp2621b-kx-p|2621b-kx-p|hp 2621b with new keyboard & printer,
447 # Some assumptions are made in the following entries.
448 # These settings are NOT set up by the initialization strings.
451 # RecvPace=Xon/Xoff XmitPace=Xon/Xoff StripNulDel=Yes
453 # Terminal Configuration
454 # InhHndShk(G)=Yes InhDC2(H)=Yes
455 # XmitFnctn(A)=No InhEolWrp=No
458 # Hp 2622a & hp2623a display and graphics terminals
460 hp2622|hp2622a|2622|2622a|hp 2622,
469 # The 2623 is a 2622 with extra graphics hardware.
471 hp2623|hp2623a|2623|2623a|hp 2623,
475 hp2624b-p|hp2624b-4p-p|Hewlett Packard 2624 B with printer,
480 # The Hewlett Packard B can have an optional extra 6 pages of
484 hp2624-10p|hp2624a-10p|hp2624b-10p|2624-10p|2624a-10p|2624b-10p|Hewlett Packard 2624 B w/ 10 pages of memory,
487 hp2624b-10p-p|Hewlett Packard 2624 B w/ extra memory & printer,
488 lm#240, use=hp2624b-p,
491 # Color manipulations for HP terminals
493 hp+color|hp with colors,
495 pairs#8, colors#16, ncv#17,
497 initp=\E&v%?%p2%{1000}%=%t1%e.%p2%d%;a
498 %?%p3%{1000}%=%t1%e.%p3%d%;b
499 %?%p4%{1000}%=%t1%e.%p4%d%;c
500 %?%p5%{1000}%=%t1%e.%p5%d%;x
501 %?%p6%{1000}%=%t1%e.%p6%d%;y
502 %?%p7%{1000}%=%t1%e.%p7%d%;z
504 oc=\E&v0m1a1b1c0I\E&v1a1I\E&v1b2I\E&v1a1b3I\E&v1c4I\E&v1a1c5I\E&v1b1c6I\E&v1x1y7I,
508 # is2 disables the dispay, set screen to be 80 columns wide,
509 # set all function keys to transmit default strings, clears
510 # the screen and then enables the display.
513 hp2397|2397|2397a|hp2397a|HP 2397A,
514 is2=\E*dF\E&w6f80X\E&f0a1k2d2Lf1\Ep\E&f0a2k2d2Lf2\Eq\E&f0a3k2d2Lf3\Er\E&f0a4k2d2Lf4\Es\E&f0a5k2d2Lf5\Et\E&f0a6k2d2Lf6\Eu\E&f0a7k2d2Lf7\Ev\E&f0a8k2d2Lf8\Ew\EH\EJ$<40>\E*dE,
515 use=scrhp, use=hp+labels, use=hp+color,