1 ######## TERMINAL TYPE DESCRIPTIONS SOURCE FILE
3 # This version of terminfo.src is distributed with ncurses and is maintained
4 # by Thomas E. Dickey (TD).
6 # Report bugs and new terminal descriptions to
10 # $Date: 2024/10/05 16:04:17 $
12 # The original header is preserved below for reference. It is noted that there
13 # is a "newer" version which differs in some cosmetic details (but actually
14 # stopped updates several years ago); we have decided to not change the header
15 # unless there is also a change in content.
17 # To further muddy the waters, it is noted that changes to this file as part of
18 # maintenance of ncurses (since 1996) are generally conceded to be copyright
19 # under the ncurses MIT-style license. That was the effect of the agreement
20 # which the principal authors of ncurses made in 1998. However, since much of
21 # the file itself is of unknown authorship (and the disclaimer below makes it
22 # obvious that Raymond cannot or will not convey rights over those parts),
23 # there is no explicit copyright notice on the file itself.
25 # It would also be a nuisance to split the file into unknown/known authorship
26 # and move pieces as they are maintained, since many of the maintenance changes
27 # have been small corrections to Raymond's translations to/from termcap format,
28 # correcting the data but not the accompanying annotations.
30 # In any case, note that almost half of this file is not data but annotations
31 # which reflect creative effort. Furthermore, the structure of entries to
32 # reuse common chunks also is creative (and subject to copyright). Finally,
33 # some portions of the data are derivative work under a compatible MIT-style
36 #------------------------------------------------------------------------------
37 # https://invisible-island.net/ncurses/ncurses.faq.html#terminfo_copying
38 # https://invisible-island.net/personal/copyrights.html#removing_notes
39 #------------------------------------------------------------------------------
44 # Eric S. Raymond (current maintainer)
45 # John Kunze, Berkeley
46 # Craig Leres, Berkeley
48 # Please e-mail changes to terminfo@thyrsus.com; the old termcap@berkeley.edu
49 # address is no longer valid. The latest version can always be found at
50 # <http://www.tuxedo.org/terminfo>.
52 # PURPOSE OF THIS FILE:
54 # This file describes the capabilities of various character-cell terminals,
55 # as needed by software such as screen-oriented editors.
57 # Other terminfo and termcap files exist, supported by various OS vendors
58 # or as relics of various older versions of UNIX. This one is the longest
59 # and most comprehensive one in existence. It subsumes not only the entirety
60 # of the historical 4.4BSD, GNU, System V and SCO termcap files and the BRL
61 # termcap file, but also large numbers of vendor-maintained termcap and
62 # terminfo entries more complete and carefully tested than those in historical
63 # termcap/terminfo versions.
65 # Pointers to related resources (including the ncurses distribution) may
66 # be found at <http://www.tuxedo.org/terminfo>.
68 # INTERNATIONALIZATION:
70 # This file uses only the US-ASCII character set (no ISO8859 characters).
72 # This file assumes a US-ASCII character set. If you need to fix this, start
73 # by global-replacing \E(B and \E)B with the appropriate ISO 6429 enablers
74 # for your character set. \E(A and \E)A enables the British character set
75 # with the pound sign at position 2/3.
77 # In a Japanese-processing environment using EUC/Japanese or Shift-JIS,
78 # C1 characters are considered the first-byte set of the Japanese encodings,
79 # so \E)0 should be avoided in <enacs> and initialization strings.
83 # The version you are looking at may be in any of three formats: master
84 # (terminfo with OT capabilities), stock terminfo, or termcap. You can tell
85 # which by the format given in the header above.
87 # The master format is accepted and generated by the terminfo tools in the
88 # ncurses suite; it differs from stock (System V-compatible) terminfo only
89 # in that it admits a group of capabilities (prefixed `OT') equivalent to
90 # various obsolete termcap capabilities. You can, thus, convert from master
91 # to stock terminfo simply by filtering with `sed "/OT[^,]*,/s///"'; but if
92 # you have ncurses `tic -I' is nicer (among other things, it automatically
93 # outputs entries in a canonical form).
95 # The termcap version is generated automatically from the master version
96 # using tic -C. This filtering leaves in the OT capabilities under their
97 # original termcap names. All translated entries fit within the 1023-byte
98 # string-table limit of archaic termcap libraries except where explicitly
99 # noted below. Note that the termcap translation assumes that your termcap
100 # library can handle multiple tc capabilities in an entry. 4.4BSD has this
101 # capability. Older versions of GNU termcap, through 1.3, do not.
103 # For details on these formats, see terminfo(5) in the ncurses distribution,
104 # and termcap(5) in the 4.4BSD Unix Programmer's Manual. Be aware that 4.4BSD
105 # curses has been declared obsolete by the caretakers of the 4.4BSD sources
106 # as of June 1995; they are encouraging everyone to migrate to ncurses.
108 # Note: unlike some other distributed terminfo files (Novell Unix & SCO's),
109 # no entry in this file has embedded comments. This is so source translation
110 # to termcap only has to carry over leading comments. Also, no name field
111 # contains embedded whitespace (such whitespace confuses rdist).
113 # Further note: older versions of this file were often installed with an editor
114 # script (reorder) that moved the most common terminal types to the front of
115 # the file. This should no longer be necessary, as the file is now ordered
116 # roughly by type frequency with ANSI/VT100 and other common types up front.
118 # Some information has been merged in from terminfo files distributed by
119 # USL and SCO (see COPYRIGHTS AND OTHER DELUSIONS below). Much information
120 # comes from vendors who maintain official terminfos for their hardware
121 # (notably DEC and Wyse).
123 # A detailed change history is included at the end of this file.
127 # Comments in this file begin with # - they cannot appear in the middle
128 # of a terminfo/termcap entry (this feature had to be sacrificed in order
129 # to allow standard terminfo and termcap syntax to be generated cleanly from
130 # the master format). Individual capabilities are commented out by
131 # placing a period between the colon and the capability name.
133 # The file is divided up into major sections (headed by lines beginning with
134 # the string "########") and minor sections (beginning with "####"); do
136 # grep "^####" <file> | more
138 # to see a listing of section headings. The intent of the divisions is
139 # (a) to make it easier to find things, and (b) to order the database so
140 # that important and frequently-encountered terminal types are near the
141 # front (so that you'll get reasonable search efficiency from a linear
142 # search of the termcap form even if you don't use reorder). Minor sections
143 # usually correspond to manufacturers or standard terminal classes.
144 # Parenthesized words following manufacturer names are type prefixes or
145 # product line names used by that manufacturers.
147 # HOW TO READ THE ENTRIES:
149 # The first name in an entry is the canonical name for the model or
150 # type, last entry is a verbose description. Others are mnemonic synonyms for
153 # Terminal names look like <manufacturer> <model> - <modes/options>
154 # The part to the left of the dash, if a dash is present, describes the
155 # particular hardware of the terminal. The part to the right may be used
156 # for flags indicating special ROMs, extra memory, particular terminal modes,
157 # or user preferences.
159 # All names should be in lower case, for consistency in typing.
161 # The following are conventionally used suffixes:
162 # -2p Has two pages of memory. Likewise 4p, 8p, etc.
163 # -am Enable auto-margin.
164 # -m Monochrome. Suppress color support
165 # -mc Magic-cookie. Some terminals (notably older Wyses) can
166 # only support one attribute without magic-cookie lossage.
167 # Their base entry is usually paired with another that
168 # uses magic cookies to support multiple attributes.
169 # -nam No auto-margin - suppress <am> capability
170 # -nl No labels - suppress soft labels
171 # -ns No status line - suppress status line
172 # -rv Terminal in reverse video mode (black on white)
173 # -s Enable status line.
174 # -vb Use visible bell (<flash>) rather than <bel>.
175 # -w Wide - in 132 column mode.
176 # If a name has multiple suffixes and one is a line height, that one should
177 # go first. Thus `aaa-30-s-rv' is recommended over `aaa-s-rv-30'.
179 # Entries with embedded plus signs are designed to be included through use/tc
180 # capabilities, not used as standalone entries.
182 # To avoid search clashes, some older all-numeric names for terminals have
183 # been removed (i.e., "33" for the Model 33 Teletype, "2621" for the HP2621).
184 # All primary names of terminals now have alphanumeric prefixes.
186 # Comments marked "esr" are mostly results of applying the termcap-compiler
187 # code packaged with ncurses and contemplating the resulting error messages.
188 # In many cases, these indicated obvious fixes to syntax garbled by the
189 # composers. In a few cases, I was able to deduce corrected forms for garbled
190 # capabilities by looking at context. All the information in the original
191 # entries is preserved in the comments.
193 # In the comments, terminfo capability names are bracketed with <> (angle
194 # brackets). Termcap capability names are bracketed with :: (colons).
196 # INTERPRETATION OF USER CAPABILITIES
198 # The System V Release 4 and XPG4 terminfo format defines ten string
199 # capabilities for use by applications, <u0>...<u9>. In this file, we use
200 # certain of these capabilities to describe functions which are not covered
201 # by terminfo. The mapping is as follows:
203 # u9 terminal enquire string (equiv. to ANSI/ECMA-48 DA)
204 # u8 terminal answerback description
205 # u7 cursor position request (equiv. to VT100/ANSI/ECMA-48 DSR 6)
206 # u6 cursor position report (equiv. to ANSI/ECMA-48 CPR)
208 # The terminal enquire string <u9> should elicit an answerback response
209 # from the terminal. Common values for <u9> will be ^E (on older ASCII
210 # terminals) or \E[c (on newer VT100/ANSI/ECMA-48-compatible terminals).
212 # The cursor position request (<u7>) string should elicit a cursor position
213 # report. A typical value (for VT100 terminals) is \E[6n.
215 # The terminal answerback description (u8) must consist of an expected
216 # answerback string. The string may contain the following scanf(3)-like
219 # %c Accept any character
220 # %[...] Accept any number of characters in the given set
222 # The cursor position report (<u6>) string must contain two scanf(3)-style
223 # %d format elements. The first of these must correspond to the Y coordinate
224 # and the second to the %d. If the string contains the sequence %i, it is
225 # taken as an instruction to decrement each value after reading it (this is
226 # the inverse sense from the cup string). The typical CPR value is
227 # \E[%i%d;%dR (on VT100/ANSI/ECMA-48-compatible terminals).
229 # These capabilities are used by tack(1m), the terminfo action checker
230 # (distributed with ncurses 5.0).
234 # All the entries in this file have been edited to assume that the tabset
235 # files directory is /usr/share/tabset, in conformance with the File Hierarchy
236 # Standard for Linux and open-source BSD systems. Some vendors (notably Sun)
237 # use /usr/lib/tabset or (more recently) /usr/share/lib/tabset.
239 # No curses package we know of actually uses these files. If their location
240 # is an issue, you will have to hand-patch the file locations before compiling
243 # REQUEST FOR CONTACT INFORMATION AND HISTORICAL MATERIAL
245 # As the ANSI/ECMA-48 standard and variants take firmer hold, and as
246 # character-cell terminals are increasingly replaced by X displays, much of
247 # this file is becoming a historical document (this is part of the reason for
248 # the new organization, which puts ANSI types, xterm, Unix consoles,
249 # and vt100 up front in confidence that this will catch 95% of new hardware).
251 # For the terminal types still alive, I'd like to have manufacturer's
252 # contact data (Internet address and/or snail-mail + phone).
254 # I'm also interested in enriching the comments so that the latter portions of
255 # the file do in fact become a potted history of VDT technology as seen by
256 # UNIX hackers. Ideally, I'd like the headers for each manufacturer to
257 # include its live/dead/out-of-the-business status, and for as many
258 # terminal types as possible to be tagged with information like years
259 # of heaviest use, popularity, and interesting features.
261 # I'm especially interested in identifying the obscure entries listed under
262 # `Miscellaneous obsolete terminals, manufacturers unknown' before the tribal
263 # wisdom about them gets lost. If you know a lot about obscure old terminals,
264 # please go to the terminfo resource page, grab the UFO file (ufo.ti), and
265 # eyeball it for things you can identify and describe.
267 # If you have been around long enough to contribute, please read the file
268 # with this in mind and send me your annotations.
270 # COPYRIGHTS AND OTHER DELUSIONS
272 # The BSD ancestor of this file had a standard Regents of the University of
273 # California copyright with dates from 1980 to 1993.
275 # Some information has been merged in from a terminfo file SCO distributes.
276 # It has an obnoxious boilerplate copyright which I'm ignoring because they
277 # took so much of the content from the ancestral BSD versions of this file
278 # and didn't attribute it, thereby violating the BSD Regents' copyright.
280 # Not that anyone should care. However many valid functions copyrights may
281 # serve, putting one on a termcap/terminfo file with hundreds of anonymous
282 # contributors makes about as much sense as copyrighting a wall-full of
283 # graffiti -- it's legally dubious, ethically bogus, and patently ridiculous.
285 # This file deliberately has no copyright. It belongs to no one and everyone.
286 # If you claim you own it, you will merely succeed in looking like a fool.
287 # Use it as you like. Use it at your own risk. Copy and redistribute freely.
288 # There are no guarantees anywhere. Svaha!
291 ######## ANSI, UNIX CONSOLE, AND SPECIAL TYPES
293 # This section describes terminal classes and brands that are still
299 # Special "terminals". These are used to label tty lines when you don't
300 # know what kind of terminal is on it. The characteristics of an unknown
301 # terminal are the lowest common denominator - they look about like a ti 700.
304 dumb|80-column dumb tty,
307 bel=^G, cr=\r, cud1=\n, ind=\n,
308 unknown|unknown terminal type,
310 lpr|printer|line printer,
313 bel=^G, cr=\r, cub1=^H, cud1=\n, ff=^L, ind=\n,
314 glasstty|classic glass tty interpreting ASCII control characters,
317 bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, ht=^I, kcub1=^H,
318 kcud1=\n, nel=\r\n, .kbs=^H,
322 bel=^G, cr=\r, cud1=\n, ind=\n,
324 # This is almost the same as "dumb", but with no prespecified width.
325 # DEL and ^C are hardcoded to act as kill characters.
326 # ^D acts as a line break (just like newline).
329 # for compatibility with xterm -TD
330 9term|Plan9 terminal emulator for X,
332 OTnl=\n, bel=^G, cud1=\n,
334 #### ANSI.SYS/ISO 6429/ECMA-48 Capabilities
336 # See the end-of-file comment for more on these.
339 # ANSI capabilities are broken up into pieces, so that a terminal
340 # implementing some ANSI subset can use many of them.
341 ansi+local1|ANSI normal-mode cursor-keys,
342 cub1=\E[D, cud1=\E[B, cuf1=\E[C, cuu1=\E[A,
343 ansi+local|ANSI normal-mode parameterized cursor-keys,
344 cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
345 cuu=\E[%p1%dA, use=ansi+local1,
346 ansi+tabs|ANSI tab-stops,
347 cbt=\E[Z, ht=^I, hts=\EH, tbc=\E[3g,
348 ansi+inittabs|ANSI initial tab-stops,
350 ansi+erase|ANSI clear screen/line,
351 clear=\E[H\E[J, ed=\E[J, el=\E[K,
352 ansi+rca|ANSI relative cursor-addressing (1-based),
353 hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd,
354 ansi+rca2|ANSI relative cursor-addressing,
355 hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd,
356 ansi+cup|ANSI absolute cursor-addressing,
357 cup=\E[%i%p1%d;%p2%dH, home=\E[H,
358 ansi+rep|ANSI repeat-character,
359 rep=%p1%c\E[%p2%{1}%-%db,
360 ansi+idl1|ANSI insert/delete one line,
362 ansi+idl|ANSI insert/delete lines,
363 dl=\E[%p1%dM, il=\E[%p1%dL, use=ansi+idl1,
364 ansi+idc1|ANSI insert/delete one character,
365 dch1=\E[P, ich1=\E[@, rmir=\E[4l, smir=\E[4h,
366 ansi+idc|ANSI insert/delete characters,
367 dch=\E[%p1%dP, ich=\E[%p1%d@, use=ansi+idc1,
368 ansi+arrows|ANSI normal-mode home and cursor-keys,
369 kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
371 ansi+apparrows|ANSI application-mode home and cursor-keys,
372 kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, khome=\EOH,
374 ansi+sgr|ANSI graphic renditions,
375 blink=\E[5m, invis=\E[8m, rev=\E[7m,
376 sgr=\E[0%?%p3%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
378 ansi+sgrso|ANSI standout only,
379 rmso=\E[m, smso=\E[7m,
380 ansi+sgrul|ANSI underline only,
381 rmul=\E[m, smul=\E[4m,
382 ansi+sgrbold|ANSI graphic renditions; assuming terminal has bold; not dim,
384 sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p6%t1;
386 use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
387 ansi+sgrdim|ANSI graphic renditions; assuming terminal has dim; not bold,
389 sgr=\E[%?%p1%t7;%;%?%p2%t4;%;%?%p3%t7;%;%?%p4%t5;%;%?%p5%t2;
391 use=ansi+sgr, use=ansi+sgrso, use=ansi+sgrul,
393 # ECMA-48 does not specify scroll-regions, but most people consider it to be
394 # "ANSI" because it is widely-supported. See ecma+index for the standard form.
395 ansi+csr|ANSI scroll-region plus cursor save & restore,
396 csr=\E[%i%p1%d;%p2%dr, rc=\E8, sc=\E7,
398 # The normal (ANSI) flavor of "media copy" building block asserts that
399 # characters sent to the printer do not echo on the screen. DEC terminals
400 # can also be put into autoprinter mode, where each line is sent to the
401 # printer as you move off that line, e.g., by a carriage return.
402 ansi+pp|ANSI printer port,
404 mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
405 dec+pp|DEC autoprinter mode,
406 mc0=\E[i, mc4=\E[?4i, mc5=\E[?5i,
408 # The IBM PC alternate character set. Plug this into any Intel console entry.
409 # We use \E[11m for rmacs rather than \E[12m so the <acsc> string can use the
410 # ROM graphics for control characters such as the diamond, up- and down-arrow.
411 # This works with the System V, Linux, and BSDI consoles. It's a safe bet this
412 # will work with any Intel console, they all seem to have inherited \E[11m
413 # from the ANSI.SYS de-facto standard.
414 klone+acs|alternate character set for ansi.sys displays,
415 acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j
416 \331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v
417 \301w\302x\263y\363z\362{\343|\330}\234~\376,
418 rmacs=\E[10m, smacs=\E[11m,
420 # Highlight controls corresponding to the ANSI.SYS standard. Most
421 # console drivers for Intel boxes obey these. Makes the same assumption
422 # about \E[11m as klone+acs. True ANSI/ECMA-48 would have <rmso=\E[27m>,
423 # <rmul=\E[24m>, but this isn't a documented feature of ANSI.SYS.
424 klone+sgr|attribute control for ansi.sys displays,
425 blink=\E[5m, bold=\E[1m, rev=\E[7m, rmpch=\E[10m,
426 rmso=\E[m, rmul=\E[m,
427 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
429 sgr0=\E[0;10m, smpch=\E[11m, smso=\E[7m, smul=\E[4m,
432 # Most Intel boxes do not treat "invis" (invisible) text.
433 klone+sgr8|attribute control for ansi.sys displays with invis,
435 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
436 %t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
439 # Highlight controls corresponding to the ANSI.SYS standard. *All*
440 # console drivers for Intel boxes obey these. Does not assume \E[11m will
441 # work; uses \E[12m instead, which is pretty bulletproof but loses you the ACS
442 # diamond and arrow characters under curses.
443 klone+sgr-dumb|attribute control for ansi.sys displays (no ESC [ 11 m),
444 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
445 %t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
446 sgr0=\E[0;10m, smacs=\E[12m, use=ansi+sgrbold,
449 # KOI8-R (RFC1489) acs (alternate character set)
450 # From: Qing Long <qinglong@Bolizm.ihep.su>, 24 Feb 1996.
451 klone+koi8acs|alternate character set for ansi.sys displays with KOI8 charset,
452 acsc=+\020\,\021-\036.^_0\215`\004a\237f\234g\232h\222i
453 \220j\205k\203l\202m\204n\212o\213p\216q\0r\217s\214t
454 \206u\207v\210w\211x\201y\230z\231{\267|\274}L~
456 rmacs=\E[10m, smacs=\E[11m,
458 # ANSI.SYS color control. The setab/setaf caps depend on the coincidence
459 # between SVr4/XPG4's color numbers and ANSI.SYS attributes. Here are longer
460 # but equivalent strings that don't rely on that coincidence:
461 # setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
462 # setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
463 # The DOS 5 manual asserts that these sequences meet the ISO 6429 standard.
464 # They match a subset of ECMA-48.
465 klone+color|color control for ansi.sys and ISO6429-compatible displays,
466 colors#8, ncv#3, pairs#64,
467 op=\E[37;40m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
469 # This is better than klone+color, it doesn't assume white-on-black as the
470 # default color pair, but many `ANSI' terminals don't grok the <op> cap.
471 ecma+color|color control for ECMA-48-compatible terminals,
473 op=\E[39;49m, use=klone+color,
475 ecma+italics|ECMA-48 italics,
476 ritm=\E[23m, sitm=\E[3m,
478 # Attribute control for ECMA-48-compatible terminals
479 ecma+sgr|attribute capabilities for true ECMA-48 terminals,
480 rmso=\E[27m, rmul=\E[24m, use=klone+sgr8,
482 ecma+strikeout|ECMA-48 strikeout/crossed-out,
483 rmxx=\E[29m, smxx=\E[9m,
485 # ECMA-48 does not include the VT100 indexing and scroll-margins. It has its
487 ecma+index|ECMA-48 scroll up/down,
488 indn=\E[%p1%dS, rin=\E[%p1%dT,
490 # For comparison, here are all the capabilities implied by the Intel
491 # Binary Compatibility Standard (level 2) that fit within terminfo.
492 # For more detail on this rather pathetic standard, see the comments
493 # near the end of this file.
494 ibcs2|Intel Binary Compatibility Standard prescriptions,
495 cbt=\E[Z, clear=\Ec, cub1=\E[1D, cud1=\E[1B, cuf1=\E[1C,
496 cup=\E[%i%p1%d;%p2%dH, cuu1=\E[1A, dch=\E[%p1%dP,
497 dispc=\E=%p1%dg, ech=\E[%p1%dX, hpa=\E[%i%p1%dG, hts=\EH,
498 ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, rc=\E7,
499 rmam=\E[?7l, sc=\E7, smam=\E[?7h, tbc=\E[g,
500 vpa=\E[%i%p1%dd, use=ansi+local, use=ecma+index,
502 #### ANSI/ECMA-48 terminals and terminal emulators
504 # See near the end of this file for details on ANSI conformance.
505 # Don't mess with these entries! Lots of other entries depend on them!
507 # This section lists entries in a least-capable to most-capable order.
508 # if you're in doubt about what `ANSI' matches yours, try them in that
509 # order and back off from the first that breaks.
511 # ansi-mr is for ANSI terminals with ONLY relative cursor addressing
512 # and more than one page of memory. It uses local motions instead of
513 # direct cursor addressing, and makes almost no assumptions. It does
514 # assume auto margins, no padding and/or xon/xoff, and a 24x80 screen.
515 ansi-mr|mem rel cup ANSI,
517 cols#80, lines#24, use=vanilla, use=ansi+erase,
520 # ansi-mini is a bare minimum ANSI terminal. This should work on anything, but
521 # beware of screen size problems and memory relative cursor addressing.
522 ansi-mini|any ANSI terminal with pessimistic assumptions,
524 cols#80, lines#24, use=vanilla, use=ansi+cup,
527 # ansi-mtabs adds relative addressing and minimal tab support
528 ansi-mtabs|any ANSI terminal with pessimistic assumptions (relative addressing),
530 ht=^I, use=ansi-mini, use=ansi+local1,
532 # ANSI X3.64 from emory!mlhhh (Hugh Hansard) via BRL
534 # The following is an entry for the full ANSI 3.64 (1977). It lacks
535 # padding, but most terminals using the standard are "fast" enough
536 # not to require any -- even at 9600 bps. If you encounter problems,
537 # try including the padding specifications.
539 # Note: the :as: and :ae: specifications are not implemented here, for
540 # the available termcap documentation does not make clear WHICH alternate
541 # character set to specify. ANSI 3.64 seems to make allowances for several.
542 # Please make the appropriate adjustments to fit your needs -- that is
543 # if you will be using alternate character sets.
545 # There are very few terminals running the full ANSI 3.64 standard,
546 # so I could only test this entry on one verified terminal (Visual 102).
547 # I would appreciate the results on other terminals sent to me.
549 # Please report comments, changes, and problems to:
551 # U.S. MAIL: Hugh Hansard
554 # Atlanta, GA. 30322.
556 # USENET {akgua,msdc,sb1,sb6,gatech}!emory!mlhhh.
558 # (Added vt100 <rc>,<sc> to quiet a tic warning --esr)
559 ansi77|ANSI 3.64 standard 1977 version,
561 cols#80, it#8, lines#24,
562 bel=^G, clear=\E[;H\E[2J, cr=\r, cub1=^H,
563 cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, dl1=\E[M$<5*/>,
564 ed=\E[J, el=\E[K, home=\E[H, ht=^I, il1=\E[L$<5*/>, ind=\ED,
565 kf1=\EOP, kf2=\EOR, kf4=\EOS, nel=\r\ED, ri=\EM, rmir=\E[4l,
566 rmso=\E[m, rmul=\E[m, smir=\E[4h, smso=\E[7m, smul=\E[4m,
567 use=ansi+arrows, use=ansi+csr, use=ansi+local1,
569 # Procomm and some other ANSI emulations don't recognize all of the ANSI-
570 # standard capabilities. This entry deletes <cuu>, <cuf>, <cud>, <cub>, and
571 # <vpa>/<hpa> capabilities, forcing curses to use repetitions of <cuu1>,
572 # <cuf1>, <cud1> and <cub1>. Also deleted <ich> and <ich1>, as QModem up to
573 # 5.03 doesn't recognize these. Finally, we delete <rep> and <ri>, which seem
574 # to confuse many emulators. On the other hand, we can count on these programs
575 # doing <rmacs>/<smacs>/<sgr>. Older versions of this entry featured
576 # <invis=\E[9m>, but <invis=\E[8m> now seems to be more common under
577 # ANSI.SYS influence.
578 # From: Eric S. Raymond <esr@snark.thyrsus.com> Oct 30 1995
579 pcansi-m|pcansi-mono|ibm-pc terminal programs claiming to be ANSI (mono mode),
582 bel=^G, cr=\r, cup=\E[%i%p1%d;%p2%dH, dch1=\E[P, dl1=\E[M,
583 home=\E[H, ht=^I, il1=\E[L, ind=\n, use=ansi+arrows,
584 use=ansi+erase, use=ansi+inittabs, use=ansi+local1,
587 pcansi-25-m|pcansi25m|ibm-pc terminal programs with 25 lines (mono mode),
588 lines#25, use=pcansi-m,
589 pcansi-33-m|pcansi33m|ibm-pc terminal programs with 33 lines (mono mode),
590 lines#33, use=pcansi-m,
591 pcansi-43-m|ansi43m|ibm-pc terminal programs with 43 lines (mono mode),
592 lines#43, use=pcansi-m,
593 # The color versions. All PC emulators do color...
594 pcansi|ibm-pc terminal programs claiming to be ANSI,
595 use=klone+color, use=pcansi-m,
596 pcansi-25|pcansi25|ibm-pc terminal programs with 25 lines,
597 lines#25, use=pcansi,
598 pcansi-33|pcansi33|ibm-pc terminal programs with 33 lines,
599 lines#33, use=pcansi,
600 pcansi-43|pcansi43|ibm-pc terminal programs with 43 lines,
601 lines#43, use=pcansi,
603 # ansi-m -- full ANSI X3.64 with ANSI.SYS-compatible attributes, no color.
604 # If you want pound signs rather than dollars, replace `B' with `A'
605 # in the <s0ds>, <s1ds>, <s2ds>, and <s3ds> capabilities.
606 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
607 ansi-m|ansi-mono|ANSI X3.64-1979 terminal with ANSI.SYS compatible attributes,
609 dch=\E[%p1%dP, dl=\E[%p1%dM, ech=\E[%p1%dX, el1=\E[1K,
610 hpa=\E[%i%p1%dG, ht=\E[I, ich=\E[%p1%d@, il=\E[%p1%dL,
611 kcbt=\E[Z, kich1=\E[L, mc4=\E[4i, mc5=\E[5i, nel=\r\E[S,
612 rep=%p1%c\E[%p2%{1}%-%db, s0ds=\E(B, s1ds=\E)B,
613 s2ds=\E*B, s3ds=\E+B, vpa=\E[%i%p1%dd, use=ansi+local,
614 use=ecma+index, use=pcansi-m,
616 # ECMA-48 addresses three of the four capabilities here:
619 # 8.3.14 CPR - ACTIVE POSITION REPORT
620 # Notation: (Pn1;Pn2) Representation: CSI Pn1;Pn2 05/02
621 # Parameter default values: Pn1 = 1; Pn2 = 1
624 # 8.3.35 DSR - DEVICE ST A TUS REPORT
625 # Notation: (Ps) Representation: CSI Ps 06/14
626 # Parameter default value: Ps = 0
627 # DSR is used either to report the status of the sending device or to
628 # request a status report from the receiving device, depending on the
630 # 6 a report of the active presentation position or of the active data
631 # position in the form of ACTIVE POSITION REPORT (CPR) is requested
634 # 8.3.24 DA - DEVICE ATTRIBUTES
635 # Notation: (Ps) Representation: CSI Ps 06/03
636 # Parameter default value: Ps = 0
637 # With a parameter value not equal to 0, DA is used to identify the
638 # device which sends the DA. The parameter value is a device type
639 # identification code according to a register which is to be established.
640 # If the parameter value is 0, DA is used to request an identifying DA
643 # DEC (and most "ANSI") terminals reply with a private-mode ("?") sequence,
644 # but that register "which is to be" in ECMA-48 was never established.
645 # For terminals that support DA1, a more specific u8 capability is preferred,
646 # except for those (such as xterm) which can be configured to return different
648 ansi+cpr|ncurses extension for ANSI CPR,
649 u6=\E[%i%d;%dR, u7=\E[6n,
650 ansi+enq|ncurses extension for ANSI ENQ,
651 u8=\E[?%[;0123456789]c, u9=\E[c, use=ansi+cpr,
652 # DEC terminals provided DECID, subsumed into DA1:
653 decid+cpr|ncurses extension for DECID,
654 u8=\E[?%[;0123456789]c, u9=\EZ, use=ansi+cpr,
656 # ansi -- this terminfo expresses the largest subset of X3.64 that will fit in
657 # standard terminfo. Assumes ANSI.SYS-compatible attributes and color.
658 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 6 1995
659 ansi|ansi/pc-term compatible with color,
660 use=ansi+enq, use=ecma+color, use=klone+sgr8, use=ansi-m,
662 # ansi-generic is a vanilla ANSI terminal. This is assumed to implement
663 # all the normal ANSI stuff with no extensions. It assumes
664 # insert/delete line/char is there, so it won't work with
665 # VT100 clones. It assumes video attributes for bold, blink,
666 # underline, and reverse, which won't matter much if the terminal
667 # can't do some of those. Padding is assumed to be zero, which
668 # shouldn't hurt since xon/xoff is assumed.
669 ansi-generic|ansiterm|generic ANSI standard terminal,
671 cols#80, lines#24, use=vanilla, use=ansi+csr, use=ansi+cup,
672 use=ansi+rca, use=ansi+erase, use=ansi+tabs,
673 use=ansi+local, use=ansi+idc, use=ansi+idl, use=ansi+rep,
674 use=ansi+sgrbold, use=ansi+arrows,
676 #### DOS ANSI.SYS variants
678 # This completely describes the sequences specified in the DOS 2.1 ANSI.SYS
679 # documentation (except for the keyboard key reassignment feature, which
680 # doesn't fit the <pfkey> model well). The klone+acs sequences were valid
681 # though undocumented. The <pfkey> capability is untested but should work for
682 # keys F1-F10 (%p1 values outside this range will yield unpredictable results).
683 # From: Eric S. Raymond <esr@snark.thyrsus.com> Nov 7 1995
685 # DOS 2.0 (January 1983) documented these features in
686 # Chapter 13, "Using Extended Screen and Keyboard Control" -TD
687 ansi.sys-old|ANSI.SYS under PC-DOS 2.0,
688 OTbs, am, mir, msgr, xon,
690 clear=\E[2J, cub1=^H, cup=\E[%i%p1%d;%p2%dH, el=\E[k,
691 home=\E[H, is2=\E[m\E[?7h, kcub1=^H, kcud1=\n, kcuf1=^L,
692 kcuu1=^K, khome=^^, pfkey=\E[0;%p1%{58}%+%d;%p2"%s"p,
693 rc=\E[u, rmam=\E[?7l, sc=\E[s, smam=\E[?7h, use=ansi+cpr,
694 use=ansi+local1, use=klone+color, use=klone+sgr8,
696 # Keypad: Home=\0G Up=\0H PrPag=\0I
697 # ka1,kh kcuu1 kpp,ka3
699 # Left=\0K 5=\0L Right=\0M
702 # End=\0O Down=\0P NxPag=\0Q
703 # kc1,kend kcud1 kc3,knp
708 # On keyboard with 12 function keys,
709 # shifted f-keys: F13-F24
710 # control f-keys: F25-F36
711 # alt f-keys: F37-F48
712 # The shift/control/alt keys do not modify each other, but alt overrides both,
713 # and control overrides shift.
715 # <pfkey> capability for F1-F48 -TD
716 ansi.sys|ANSI.SYS 3.1 and later versions,
717 el=\E[K, ka1=\0G, ka3=\0I, kb2=\0L, kc1=\0O, kc3=\0Q,
718 kcbt=\0^O, kcub1=\0K, kcud1=\0P, kcuf1=\0M, kcuu1=\0H,
719 kdch1=\0S, kend=\0O, kf1=\0;, kf10=\0D, kf11=\0\205,
720 kf12=\0\206, kf13=\0T, kf14=\0U, kf15=\0V, kf16=\0W,
721 kf17=\0X, kf18=\0Y, kf19=\0Z, kf2=\0<, kf20=\0[, kf21=\0\\,
722 kf22=\0], kf23=\0\207, kf24=\0\210, kf25=\0\^, kf26=\0_,
723 kf27=\0`, kf28=\0a, kf29=\0b, kf3=\0=, kf30=\0c, kf31=\0d,
724 kf32=\0e, kf33=\0f, kf34=\0g, kf35=\0\211, kf36=\0\212,
725 kf37=\0h, kf38=\0i, kf39=\0j, kf4=\0>, kf40=\0k, kf41=\0l,
726 kf42=\0m, kf43=\0n, kf44=\0o, kf45=\0p, kf46=\0q,
727 kf47=\0\213, kf48=\0\214, kf5=\0?, kf6=\0@, kf7=\0A, kf8=\0B,
728 kf9=\0C, khome=\0G, kich1=\0R, knp=\0Q, kpp=\0I,
729 pfkey=\E[0;%?%p1%{11}%<%t%':'%e%p1%{13}%<%t%'z'%e%p1%{23}%<
730 %t%'G'%e%p1%{25}%<%t%'p'%e%p1%'#'%<%t%'E'%e%p1%'%'%<%t
731 %'f'%e%p1%'/'%<%t%'C'%e%{92}%;%p1%+%d;%p2"%s"p,
732 use=ansi+arrows, use=ansi.sys-old,
735 # Define IBM PC keypad keys for vi as per MS-Kermit while using ANSI.SYS.
736 # This should only be used when the terminal emulator cannot redefine the keys.
737 # Since redefining keys with ansi.sys also affects PC-DOS programs, the key
738 # definitions must be restored. If the terminal emulator is quit while in vi
739 # or others using <smkx>/<rmkx>, the keypad will not be defined as per PC-DOS.
740 # The PgUp and PgDn are prefixed with ESC so that tn3270 can be used on Unix
741 # (^U and ^D are already defined for tn3270). The ESC is safe for vi but it
742 # does "beep". ESC ESC i is used for Ins to avoid tn3270 ESC i for coltab.
743 # Note that <kcub1> is always BS, because PC-dos can tolerate this change.
744 # Caution: vi is limited to 256 string bytes, longer crashes or weirds out vi.
745 # Consequently the End keypad key could not be set (it is relatively safe and
746 # actually useful because it sends ^@ O, which beeps and opens a line above).
747 ansi.sysk|ansisysk|PC-DOS 3.1 ANSI.SYS with keypad redefined for vi,
748 is2=U2\sPC-DOS\s3.1\sANSI.SYS\swith\skeypad\sredefined\sfor
749 \svi\s9-29-86\n\E[;75;8p,
750 rmkx=\E[;71;0;71p\E[;72;0;72p\E[;73;0;73p\E[;77;0;77p\E[;80;
751 0;80p\E[;81;0;81p\E[;82;0;82p\E[;83;0;83p,
752 smkx=\E[;71;30p\E[;72;11p\E[;73;27;21p\E[;77;12p\E[;80;10p
753 \E[;81;27;4p\E[;82;27;27;105p\E[;83;127p,
756 # Adds ins/del line/character, hence vi reverse scrolls/inserts/deletes nicer.
757 nansi.sys|nansisys|PC-DOS Public Domain NANSI.SYS,
758 dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
759 is2=U3 PC-DOS Public Domain NANSI.SYS 9-23-86\n,
762 # See ansi.sysk and nansi.sys above.
763 nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi,
764 dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
765 is2=U4\sPC-DOS\sPublic\sDomain\sNANSI.SYS\swith\skeypad
766 \sredefined\sfor\svi\s9-29-86\n\E[;75;8p,
769 #### Atari ST terminals
771 # From Guido Flohr <gufl0000@stud.uni-sb.de>.
773 tw52|tw52-color|Toswin window manager with color,
775 colors#16, pairs#0x100,
776 oc=\Eb?\Ec0, op=\Eb?\Ec0,
777 setab=\Ec%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
779 setaf=\Eb%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
781 setb=\Ec%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
783 setf=\Eb%?%p1%{0}%=%t?%e%p1%{7}%=%t0%e%p1%{15}%=%t7%e%p1
786 tw52-m|Toswin window manager monochrome,
789 bold=\Eya, dch1=\Ea, dim=\EyB,
790 is2=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0, rev=\EyP, rmso=\EzQ,
791 rmul=\EzH, rs2=\Ev\Eq\Ez_\Ee\Ei\Eb?\Ec0, sgr0=\Ez_,
792 smso=\EyQ, smul=\EyH, use=at-m,
793 tt52|Atari TT medium and high resolution,
794 lines#30, use=at-color,
795 st52-color|at-color|atari-color|atari_st-color|Atari ST with color,
797 colors#16, pairs#0x100,
798 is2=\Ev\Eq\Ee\Eb1\Ec0, rs2=\Ev\Eq\Ee\Eb1\Ec0,
799 setab=\Ec%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
800 %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
801 %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
802 %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}
804 setaf=\Eb%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
805 %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
806 %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
807 %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}
809 setb=\Ec%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
810 %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
811 %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
812 %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=
814 setf=\Eb%?%p1%{0}%=%t1%e%p1%{1}%=%t2%e%p1%{2}%=%t3%e%p1%{3}
815 %=%t>%e%p1%{4}%=%t4%e%p1%{5}%=%t7%e%p1%{6}%=%t5%e%p1
816 %{7}%=%t0%e%p1%{8}%=%t8%e%p1%{9}%=%t9%e%p1%{10}%=%t:%e
817 %p1%{11}%=%t;%e%p1%{12}%=%t<%e%p1%{13}%=%t=%e%p1%{14}%=
820 st52|st52-m|at|at-m|atari|atari-m|atari_st|atarist-m|Atari ST,
822 civis=\Ef, clear=\EE, cnorm=\Ee, dl1=\EM, el1=\Eo, il1=\EL,
823 is2=\Ev\Eq\Ee, kLFT=\Ed, kRIT=\Ec, kdch1=^?, kf1=\EP,
824 kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er, kf14=\Es, kf15=\Et,
825 kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex, kf2=\EQ, kf20=\Ey,
826 kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV, kf8=\EW, kf9=\EX,
827 khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb, kpp=\Ea, kund=\EK,
828 rc=\Ek, rev=\Ep, rmso=\Eq, rs2=\Ev\Eq\Ee, sc=\Ej, sgr0=\Eq,
829 smso=\Ep, use=vt52-basic,
830 tw100|Toswin VT100 window manager,
832 colors#8, cols#80, it#8, lines#24, pairs#64, vt#3,
833 acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxy
835 bel=^G, blink=\E[5m, bold=\E[1m, civis=\Ef,
836 clear=\E[2J\E[H, cnorm=\Ee, cr=\r, cub1=^H, cud1=\EB,
837 cuf1=\EC, cup=\E[%i%p1%d;%p2%dH, cuu1=\EA, dch1=\Ea,
838 dim=\E[2m, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K,
839 el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il1=\EL,
840 ind=\n, is2=\E<\E)0, kdch1=^?, kf1=\EOP, kf10=\EOY, kf11=\Ep,
841 kf12=\Eq, kf13=\Er, kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev,
842 kf18=\Ew, kf19=\Ex, kf2=\EOQ, kf20=\Ey, kf3=\EOR, kf4=\EOS,
843 kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, khlp=\EH,
844 khome=\E\EE, kich1=\EI, knp=\Eb, kpp=\E\Ea, kund=\EK,
845 ll=\E[24H, nel=\EE, oc=\E[30;47m, op=\E[30;47m, rev=\E[7m,
846 ri=\EM, rmacs=^O, rmcup=\E[?7h, rmir=\Ei, rmkx=\E[?1l\E>,
847 rmso=\E[m, rmul=\E[m,
848 rs1=\E<\E[20l\E[?3;6;9l\E[r\Eq\E(B\017\E)0\E>,
849 setb=\E[4%p1%'0'%+%Pa%?%ga%'0'%=%t0%e%ga%'1'%=%t4%e%ga%'2'%=
850 %t2%e%ga%'3'%=%t6%e%ga%'4'%=%t1%e%ga%'5'%=%t5%e%ga%'6'
852 setf=\E[3%p1%'0'%+%Pa%?%ga%'0'%=%t0%e%ga%'1'%=%t4%e%ga%'2'%=
853 %t2%e%ga%'3'%=%t6%e%ga%'4'%=%t1%e%ga%'5'%=%t5%e%ga%'6'
855 sgr0=\E[m, smacs=^N, smcup=\E[?7l, smir=\Eh,
856 smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
857 use=ansi+apparrows, use=ansi+csr, use=ansi+local,
859 # The entries for stv52 and stv52pc probably need a revision.
860 stv52|MiNT virtual console,
863 blink=\Er, bold=\EyA, civis=\Ef, clear=\EE, cnorm=\E. \Ee,
864 cub1=^H, cvvis=\E.", dim=\Em, dl1=\EM, il1=\EL, ind=\n$<2*/>,
865 kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er,
866 kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex,
867 kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV,
868 kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb,
869 kpp=\Ea, kund=\EK, nel=\r\n$<2*/>, op=\Eb@\EcO, rev=\Ep,
870 ri=\EI$<2*/>, rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq, rmul=\EzH,
871 rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_, smso=\Ep,
872 smul=\EyH, use=vt52-basic,
873 stv52pc|MiNT virtual console with PC charset,
876 acsc=+\257\,\256-\^.v0\333I\374`\177a\260f\370g\361h\261j
877 \331k\277l\332m\300n\305o\377p-q\304r-s_t+u+v+w+x\263y
878 \363z\362{\343|\366}\234~\371,
879 blink=\Er, bold=\EyA, civis=\Ef, clear=\EE, cnorm=\E. \Ee,
880 cub1=^H, cvvis=\E.", dim=\Em, dl1=\EM, il1=\EL, ind=\n$<2*/>,
881 kdch1=^?, kf1=\EP, kf10=\EY, kf11=\Ep, kf12=\Eq, kf13=\Er,
882 kf14=\Es, kf15=\Et, kf16=\Eu, kf17=\Ev, kf18=\Ew, kf19=\Ex,
883 kf2=\EQ, kf20=\Ey, kf3=\ER, kf4=\ES, kf5=\ET, kf6=\EU, kf7=\EV,
884 kf8=\EW, kf9=\EX, khlp=\EH, khome=\EE, kich1=\EI, knp=\Eb,
885 kpp=\Ea, kund=\EK, nel=\r\n$<2*/>, rev=\Ep, ri=\EI$<2*/>,
886 rmcup=\Ev\E. \Ee\Ez_, rmso=\Eq, rmul=\EzH,
887 rs1=\Ez_\Eb@\EcA, sgr0=\Ez_, smcup=\Ev\Ee\Ez_, smso=\Ep,
888 smul=\EyH, use=vt52-basic,
890 # From: Simson L. Garfinkel <simsong@media-lab.mit.edu>
893 cols#80, it#8, lines#25,
894 clear=\EH\EJ, cub1=\ED, cud1=\EB, cuf1=\EC,
895 cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, dl1=\EM,
896 ed=\EJ, el=\EK, ht=^I, il1=\EL, ri=\EI, rmso=\Eq, sgr0=\Eq,
897 smso=\Ep, use=vt52+arrows,
898 # UniTerm terminal program for the Atari ST: 49-line VT220 emulation mode
899 # From: Paul M. Aoki <aoki@ucbvax.berkeley.edu>
900 uniterm|uniterm49|UniTerm VT220 emulator with 49 lines,
902 is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;49r\E[49;1H, use=vt220-base,
903 # MiNT VT52 emulation. 80 columns, 25 rows.
904 # MiNT is Now TOS, the operating system which comes with all Ataris now
905 # (mainly Atari Falcon). This termcap is for the VT52 emulation you get
906 # under tcsh/zsh/bash/sh/ksh/ash/csh when you run MiNT in `console' mode
907 # From: Per Persson <pp@gnu.ai.mit.edu>, 27 Feb 1996
908 st52-old|Atari ST with VT52 emulation,
911 bel=^G, civis=\Ef, clear=\EH\EJ, cnorm=\Ee, cr=\r, cub1=\ED,
912 cud1=\EB, cuf1=\EC, cup=\EY%p1%{32}%+%c%p2%{32}%+%c,
913 cuu1=\EA, dl1=\EM, ed=\EJ, el=\EK, home=\EH, ht=^I, il1=\EL,
914 ind=\n, ka1=\E#7, ka3=\E#5, kb2=\E#9, kbs=^H, kc1=\E#1,
915 kc3=\E#3, kclr=\E#7, kcub1=\E#K, kcud1=\E#P, kcuf1=\E#M,
916 kcuu1=\E#H, kf0=\E#D, kf1=\E#;, kf2=\E#<, kf3=\E#=, kf4=\E#>,
917 kf5=\E#?, kf6=\E#@, kf7=\E#A, kf8=\E#B, kf9=\E#C, khome=\E#G,
918 kil1=\E#R, kind=\E#2, kri=\E#8, lf0=f10, nel=\r\n, rc=\Ek,
919 ri=\EI, rmcup=, rmso=\Eq, rs1=\Ez_\Eb@\EcA, sc=\Ej, sgr0=\Eq,
924 # BeOS entry for Terminal program Seems to be almost ANSI
925 beterm|BeOS Terminal,
926 am, eo, mir, msgr, xenl, xon,
927 cols#80, it#8, lines#25, ncv#5,
928 bel=^G, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
929 cup=\E[%i%p1%d;%p2%dH, ech=\E[%p1%dX, el1=\E[1K,
930 home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ind=\n,
931 kf1=\E[11~, kf10=\E[20~, kf11=\E[21~, kf12=\E[22~,
932 kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[16~,
933 kf7=\E[17~, kf8=\E[18~, kf9=\E[19~, khome=\E[1~, kspd=^Z,
934 nel=\r\n, op=\E[m, rev=\E[7m, ri=\EM, rmkx=\E[?4l, rmso=\E[m,
935 rmul=\E[24m, rs1=\Ec, setb=\E[%p1%{40}%+%cm,
936 setf=\E[%p1%{30}%+%cm, sgr0=\E[0;10m, smkx=\E[?4h,
937 smso=\E[7m, smul=\E[4m, u6=\E[%i%p1%d;%p2%dR, u7=\E[6n,
938 vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+csr,
939 use=ansi+erase, use=ansi+idc, use=ansi+idl,
940 use=ansi+local, use=klone+color, use=vt220+pcedit,
945 # release 1.2.13: 1995/03
947 # This entry is good for the 1.2.13 or later version of the Linux console.
949 # ***************************************************************************
952 # * Linuxes come with a default keyboard mapping kcbt=^I. This entry, in *
953 # * response to user requests, assumes kcbt=\E[Z, the ANSI/ECMA reverse-tab *
954 # * character. Here are the keymap replacement lines that will set this up: *
956 # keycode 15 = Tab Tab
957 # alt keycode 15 = Meta_Tab
958 # shift keycode 15 = F26
959 # string F26 ="\033[Z"
961 # * This has to use a key slot which is unfortunate (any unused one will *
962 # * do, F26 is the higher-numbered one). The change ought to be built *
963 # * into the kernel tables. *
965 # ***************************************************************************
967 # All linux kernels since 1.2.13 (at least) set the screen size
968 # themselves; this entry assumes that capability.
970 linux-basic|Linux console (basic),
971 am, bce, eo, mir, msgr, xenl, xon,
973 acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
974 \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
975 \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
976 bel=^G, cr=\r, cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH,
977 dim=\E[2m, ech=\E[%p1%dX, el1=\E[1K,
978 flash=\E[?5h$<200/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
979 ht=^I, hts=\EH, ind=\n, kb2=\E[G, kbs=^?, kcbt=\E[Z, kf1=\E[[A,
980 kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\E[[B,
981 kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~,
982 kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kmous=\E[M, kspd=^Z,
983 nel=\r\n, ri=\EM, rmam=\E[?7l, rmso=\E[27m, rmul=\E[24m,
985 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
986 %t;2%;%?%p6%t;1%;%?%p9%t;11%;m,
987 smam=\E[?7h, tbc=\E[3g, vpa=\E[%i%p1%dd, use=ansi+arrows,
988 use=ansi+csr, use=ansi+erase, use=ansi+idc, use=ansi+idl,
989 use=ansi+local, use=vt220+pcedit, use=vt102+enq,
990 use=klone+sgr, use=ecma+color, use=linux+sfkeys,
992 linux+decid|ncurses extension for Linux console DECID,
993 u8=\E[?6c, use=decid+cpr,
995 linux+sfkeys|shifted function-keys for Linux console,
996 kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
997 kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
999 linux-m|Linux console no color,
1001 setab@, setaf@, setb@, setf@, use=linux,
1003 # release 1.3: 1995/06
1005 # The 1.3.x kernels add color-change capabilities; if yours doesn't have this
1006 # and it matters, turn off <ccc>. The %02x escape used to implement this is
1007 # not supposedly back-portable to older SV curses (although it has worked fine
1008 # on Solaris for several years) and not supported in ncurses versions before
1010 linux-c-nc|Linux console with color-change,
1012 initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/
1013 %02x%p4%{255}%*%{1000}%/%02x,
1014 oc=\E]R, use=linux-basic,
1015 # From: Dennis Henriksen <opus@osrl.dk>, 9 July 1996
1016 linux-c|Linux console 1.3.6+ for older ncurses,
1018 initc=\E]P%?%p1%{9}%>%t%p1%{10}%-%'a'%+%c%e%p1%d%;%p2%{255}
1019 %*%{1000}%/%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'a'
1020 %+%c%e%gx%d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'a'
1021 %+%c%e%gx%d%;%p3%{255}%*%{1000}%/%Pr%gr%{16}%/%Px%?%gx
1022 %{9}%>%t%gx%{10}%-%'a'%+%c%e%gx%d%;%gr%{15}%&%Px%?%gx
1023 %{9}%>%t%gx%{10}%-%'a'%+%c%e%gx%d%;%p4%{255}%*%{1000}
1024 %/%Pr%gr%{16}%/%Px%?%gx%{9}%>%t%gx%{10}%-%'a'%+%c%e%gx
1025 %d%;%gr%{15}%&%Px%?%gx%{9}%>%t%gx%{10}%-%'a'%+%c%e%gx
1027 oc=\E]R, use=linux-basic,
1029 # release 2.2: 1999/01
1031 # The 2.2.x kernels add a private mode that sets the cursor type; use that to
1032 # get a block cursor for cvvis.
1033 # reported by Frank Heckenbach <frank@g-n-u.de>.
1034 linux2.2|Linux 2.2.x console,
1035 civis=\E[?25l\E[?1c, cnorm=\E[?25h\E[?0c,
1036 cvvis=\E[?25h\E[?8c, use=linux-c-nc,
1038 # release 2.6: 2003/12 - 2004/12
1040 # Linux 2.6.x has a fix for SI/SO to work with UTF-8 encoding added here:
1041 # http://lkml.iu.edu/hypermail/linux/kernel/0602.2/0738.html
1042 # Although the kernel has mappings for these, they were not in the default
1043 # font (tested with Debian and Fedora):
1050 # The fix for SI/SO is part of a configurable (i.e., "optional") kernel feature
1051 # misleadingly called CONFIG_CONSOLE_TRANSLATIONS. Disabling that not only
1052 # omits the line-drawing using SI/SO, but also part/all of the Unicode feature:
1054 # https://cateee.net/lkddb/web-lkddb/CONSOLE_TRANSLATIONS.html
1055 # "This enables support for font mapping and Unicode translation on virtual consoles."
1057 # This mailing list thread in July 2008 illustrates:
1059 # https://marc.info/?t=121734656700005&r=1&w=4
1060 # "commit a29ccf6f823a84d89e1c7aaaf221cf7282022024 break console on slackware 12.1"
1062 # The change which made it configurable was to reduce the size for use in
1063 # embedded systems. Some background is found in
1065 # https://lwn.net/Articles/284767/
1066 # "An interview with the new embedded maintainers"
1067 linux2.6|Linux 2.6.x console,
1068 acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1070 enacs=\E)0, rmacs=^O,
1071 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
1072 %t;2%;%?%p6%t;1%;m%?%p9%t\016%e\017%;,
1073 sgr0=\E[m\017, smacs=^N, use=linux2.2,
1075 # The 3.0 kernel adds support for clearing scrollback buffer (capability E3).
1076 # It is the same as xterm's erase-saved-lines feature.
1078 # Linux 3.0 was released in July 2011. The keyboard utilities (kbd) are
1079 # used for configuring its keyboard mappings.
1081 # kbd 1.14 was released before that (January 2008), but due to its placement
1082 # late in the Linux 2.6.x series had no immediate effect for most users. That
1083 # provided a default mapping for shift-tab to the (misnamed) Meta_Tab, i.e.,
1084 # the same as Alt-Tab.
1086 # The suggested mapping for the conventional \E[Z is provided in this entry as
1087 # an extended key to lessen user surprise -TD
1088 linux3.0|Linux 3.0 kernels,
1089 kcbt=\E^I, E3=\E[3J, kcbt2=\E[Z, use=linux2.6,
1091 # This is Linux console for ncurses.
1092 linux|Linux console,
1095 # Subject: linux 2.6.26 vt back_color_erase
1096 # Changes to the Linux console driver broke bce model as reported in
1097 # https://bugzilla.novell.com/show_bug.cgi?id=418613
1099 # http://lkml.org/lkml/2008/4/26/305
1100 # http://lkml.org/lkml/2008/10/3/66
1101 linux2.6.26|Linux console w/o bce,
1104 # See the note on ICH/ICH1 VERSUS RMIR/SMIR near the end of file
1105 linux-nic|Linux with ich/ich1 suppressed for non-curses programs,
1106 ich@, ich1@, use=linux,
1108 # This assumes you have used setfont(8) to load one of the Linux koi8-r fonts.
1109 # acsc entry from Pavel Roskin" <pavel@absolute.spb.su>, 29 Sep 1997.
1110 linux-koi8|Linux with koi8 alternate character set,
1111 acsc=+\020\,\021-\030.^Y0\215`\004a\221f\234g\237h\220i
1112 \276j\205k\203l\202m\204n\212o~p\0q\0r\0s_t\206u\207v
1113 \211w\210x\201y\230z\231{\267|\274~\224,
1114 use=linux, use=klone+koi8acs,
1116 # Another entry for KOI8-r with Qing Long's acsc.
1117 # (which one better complies with the standard?)
1118 linux-koi8r|Linux with koi8-r alternate character set,
1119 use=linux, use=klone+koi8acs,
1121 # Entry for the latin1 and latin2 fonts
1122 linux-lat|Linux with latin1 or latin2 alternate character set,
1123 acsc=+\020\,\021-\030.^Y0\333`\004a\013f\370g\361h\260i
1124 \316j\211k\214l\206m\203n\305o~p\304q\212r\304s_t\207u
1125 \215v\301w\302x\205y\363z\362{\343|\330}\234~\376,
1128 # This uses graphics from VT codeset instead of from cp437.
1129 # reason: cp437 (aka "straight to font") is not functional under luit.
1130 # from: Andrey V Lukyanov <land@long.yar.ru>.
1131 linux-vt|Linux console using VT codes for graphics,
1132 acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1134 rmacs=\E(K, rmpch@, sgr@, sgr0=\E[0m\E(K\017, smacs=\E(0,
1137 # release: 0.3.9b 1997/01 to 2000/05
1139 # This is based on the Linux console (relies on the console to perform some
1140 # of the functionality), but does not recognize as many control sequences.
1141 # The program comes bundled with an old (circa 1998) copy of the Linux
1142 # console terminfo. It recognizes some non-ANSI/VT100 sequences such as
1143 # \E* move cursor to home, as as \E[H
1145 # \EE move cursor to beginning of row
1146 # \E[y,xf same as \E[y,xH
1148 # Note: The status-line support is buggy (dsl does not work).
1149 kon|kon2|Kanji ON Linux console,
1150 am, bce, ccc, eo, eslok, hs, mir, msgr, xenl, xon,
1152 bel=^G, civis=\E[?25l, cnorm=\E[?25h, cr=\r, cub1=^H,
1153 cud1=\n, cup=\E[%i%p1%d;%p2%dH, dim=\E[2m,
1154 dsl=\E[?H\E[?E, el1=\E[1K, fsl=\E[?F, home=\E[H,
1155 hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ind=\n,
1156 initc=\E]P%p1%x%p2%02x%p3%02x%p4%02x, kb2=\E[G, kbs=^?,
1157 kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
1158 kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
1159 kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[[B,
1160 kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~,
1161 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kspd=^Z,
1162 nel=\r\n, op=\E[37;40m, ri=\EM, rmso=\E[27m, rmul=\E[24m,
1164 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
1165 %t;2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
1166 sgr0=\E[0;10m, tbc=\E[3g, tsl=\E[?T, u8=\E[?6c,
1167 vpa=\E[%i%p1%dd, use=ansi+arrows, use=ansi+csr,
1168 use=ansi+enq, use=ansi+erase, use=ansi+idc, use=ansi+idl,
1169 use=ansi+local, use=ansi+sgrbold, use=ecma+sgr,
1170 use=klone+color, use=vt220+pcedit,
1172 # release: 0.4.7 2005/05
1174 jfbterm|japanese framebuffer terminal,
1175 acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1177 sgr0=\E[0m, use=kon,
1180 # Another variant. There are two parts (src, src/lib) with the latter
1181 # comprising the escape-sequence parsing. The copyright notice on that
1182 # says it is based on GTerm by Timothy Miller.
1184 # The original developer "dragchan" has left, but as of March 2017 there is
1185 # (still dead) code from May 2015 here:
1186 # https://github.com/izmntuk/fbterm
1188 # The acsc string may be incorrect.
1190 # Not used here, the program recognizes escapes for italic, underline and
1191 # dim, rendering those as green, cyan and gray respectively.
1192 fbterm|FbTerm for Linux with framebuffer,
1193 colors#0x100, pairs#0x10000,
1194 acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
1195 \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
1196 \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
1197 initc=\E[3;%p1%d;%p2%d;%p3%d;%p4%d}, rmacs=\E[10m,
1198 setab=\E[2;%p1%d}, setaf=\E[1;%p1%d},
1199 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
1200 %t;2%;%?%p6%t;1%;%?%p9%t;11%;m,
1201 sgr0=\E[0;10m, smacs=\E[11m, use=linux,
1203 # 16-color linux console entry; this works with a 256-character
1204 # console font but bright background colors turn into dim ones when
1205 # you use a 512-character console font. This uses bold for bright
1206 # foreground colors and blink for bright background colors.
1208 # Interestingly, the original version of this entry in 2009 used a documented
1209 # (but nonstandard) SGR 21, which was supported in the Linux console since 1992
1210 # as an equivalent for SGR 22. Long after (early 2018), someone modified the
1211 # console driver to make it ignore SGR 21 because the ECMA-48 standard
1212 # suggested a different use for that particular code:
1214 # https://github.com/torvalds/linux/commit/65d9982d7e523a1a8e7c9af012da0d166f72fc56#diff-7da3c215d12c9f6b88e1a37d38b116f0
1216 # Two years later, someone (unfamiliar with ECMA-48 this time) documented it:
1218 # https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/man4/console_codes.4?id=a133a6bc03d751a424fe0a4adea2198757599615
1220 # For background, refer to the report on bug-ncurses:
1222 # https://lists.gnu.org/archive/html/bug-ncurses/2019-10/msg00059.html
1223 linux-16color|Linux console with 16 colors,
1224 colors#16, ncv#42, pairs#0x100,
1225 setab=\E[4%p1%{8}%m%d%?%p1%{7}%>%t;5%e;25%;m,
1226 setaf=\E[3%p1%{8}%m%d%?%p1%{7}%>%t;1%e;22%;m,
1229 # bterm (bogl 0.1.18)
1230 # Implementation is in bogl-term.c
1231 # Key capabilities from linux terminfo entry
1234 # bterm only supports acs using wide-characters, has case for these: qjxamlkut
1235 # bterm does not support sgr, since it only processes one parameter -TD
1236 bterm|bogl virtual terminal,
1238 colors#8, cols#80, lines#24, pairs#64,
1239 acsc=aajjkkllmmqqttuuxx, bold=\E[1m, clear=\E[H\E[2J,
1240 cr=\r, cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH, ed=\E[J,
1241 el=\E[K, home=\E[H, ind=\n, kb2=\E[G, kbs=^?, kcbt=\E[Z,
1242 kf1=\E[[A, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
1243 kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
1244 kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[[B,
1245 kf20=\E[34~, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~,
1246 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~,
1247 kmous=\E[M, kspd=^Z, nel=\r\n, op=\E[49m\E[39m, rev=\E[7m,
1248 ri=\EM, rmacs=^O, rmso=\E[27m, rmul=\E[24m,
1249 setab=\E[4%p1%dm, setaf=\E[3%p1%dm, sgr0=\E[0m, smacs=^N,
1250 smso=\E[7m, smul=\E[4m, use=ansi+arrows,
1251 use=vt220+pcedit, use=vt220+cvis,
1256 # From: Matthew Vernon <mcv21@pick.sel.cam.ac.uk>
1259 cols#80, it#8, lines#25,
1260 bel=^G, blink=\E[5m, bold=\E[1m, clear=\Ec, cr=\r, cub1=^H,
1261 cud1=\n, cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K,
1262 home=\E[H, ht=^I, ind=\n, kbs=^?, kdch1=\E[9, kend=\E[Y,
1263 kf1=\EOP, kf10=\EOY, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT,
1264 kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, kich1=\E[@, kll=\E[F,
1265 knp=\E[U, kpp=\E[V, rev=\E[7m, rmso=\E[0m, rmul=\E[24m,
1266 sgr0=\E[0m, smso=\E[7m, smul=\E[4m, use=ansi+arrows,
1267 use=ansi+idl, use=ansi+local,
1269 mach-bold|Mach console with bold instead of underline,
1270 rmul=\E[0m, smul=\E[1m, use=mach,
1271 mach-color|Mach console with ANSI color,
1273 dim=\E[2m, invis=\E[8m, op=\E[37;40m, rmso=\E[27m,
1274 setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=mach,
1276 # From: Samuel Thibault
1277 # Source: git://git.sv.gnu.org/hurd/gnumach.git
1278 # Files: i386/i386at/kd.c
1280 # Added nel, hpa, sgr and removed rmacs, smacs based on source -TD
1282 acsc=+>\,<-\^.v0\333`+a\261f\370g\361h\260i#j\331k\277l
1283 \332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x
1284 \263y\363z\362{\343|\330}\234~\376,
1285 dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
1286 el1=\E[1K, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ich1=\E[@,
1287 invis=\E[8m, nel=\EE,
1288 sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;
1289 2%;%?%p6%t;1%;%?%p7%t;8%;m,
1290 use=ecma+index, use=mach,
1292 mach-gnu-color|GNU Mach console with ANSI color,
1294 op=\E[37;40m, rmso=\E[27m, setab=\E[4%p1%dm,
1295 setaf=\E[3%p1%dm, use=mach-gnu,
1297 # From: Marcus Brinkmann
1298 # http://git.savannah.gnu.org/cgit/hurd/hurd.git/log/console/
1300 # Comments in the original are summarized here:
1302 # hurd uses 8-bit characters (km).
1304 # Although it doesn't do XON/XOFF, we don't want padding characters (xon).
1306 # Regarding compatibility to vt100: hurd doesn't specify <xenl>, as we don't
1307 # have the eat_newline_glitch. It doesn't support setting or removing tab
1310 # hurd uses ^H instead of \E[D for cub1, as only ^H implements <bw> and it is
1311 # one byte instead three.
1313 # <ich1> is not included because hurd has insert mode.
1315 # hurd doesn't use ^J for scrolling, because this could put things into the
1316 # scrollback buffer.
1318 # gsbom/grbom are used to enable/disable real bold (not intensity bright) mode.
1319 # This is a GNU extension.
1321 # The original has commented-out ncv, but is restored here.
1323 # Reading the source, RIS resets cnorm, but not xmous.
1324 hurd|The GNU Hurd console server,
1325 am, bce, bw, eo, km, mir, msgr, xenl, xon, NQ,
1327 acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1329 bel=^G, cbt=\E[Z, clear=\Ec, cr=\r, cub1=^H, cvvis=\E[34l,
1330 dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, ech=\E[%p1%dX,
1331 el1=\E[1K, flash=\Eg, ht=^I, ich=\E[%p1%d@, ind=\E[S,
1332 kb2=\E[G, kbs=^?, kcbt=\E[Z, kf1=\EOP, kf10=\E[21~,
1333 kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
1334 kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
1335 kf19=\E[33~, kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS,
1336 kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
1337 khome=\E[1~, kmous=\E[M, kspd=^Z, nel=\r\n, op=\E[39;49m,
1338 ri=\E[T, rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
1340 sgr=\E[0%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;
1341 2%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
1342 smir=\E[4h, grbom=\E[>1l, gsbom=\E[>1h,
1343 use=ansi+apparrows, use=ansi+csr, use=ansi+cup,
1344 use=ansi+erase, use=ansi+idl, use=ansi+local,
1345 use=ansi+rca2, use=ansi+sgrbold, use=vt220+pcedit,
1346 use=ecma+index, use=ecma+italics, use=klone+acs,
1347 use=klone+color, use=vt220+cvis,
1353 # Michael's original version of this entry had <am@>, <smcup=\Ei>,
1354 # <rmcup=\Eh\ER>; this was so terminfo applications could write the lower
1355 # right corner without triggering a scroll. The ncurses terminfo library can
1356 # handle this case with the <ich1> capability, and prefers <am> for better
1357 # optimization. Bug: The <op> capability resets attributes.
1358 # From: Michael Hunter <mphunter@qnx.com> 30 Jul 1996
1359 # (removed: <sgr=%?%p1%t\E<%;%p2%t\E[%;%p3%t\E(%;%p4%t\E{%;%p6%t\E<%;,>)
1360 qnx|qnx4|QNX console,
1361 daisy, km, mir, msgr, xhpa, xt,
1362 colors#8, cols#80, it#4, lines#25, ncv#3, pairs#8,
1363 acsc=O\333a\261j\331k\277l\332m\300n\305o\337q\304s\334t
1364 \303u\264v\301w\302x\263,
1365 bel=^G, blink=\E{, bold=\E<, civis=\Ey0, clear=\EH\EJ,
1366 cnorm=\Ey1, cr=\r, cub1=^H, cud1=\n, cuf1=\EC,
1367 cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, cvvis=\Ey2,
1368 dch1=\Ef, dl1=\EF, ed=\EJ, el=\EK, home=\EH, ht=^I, ich1=\Ee,
1369 il1=\EE, ind=\n, kBEG=\377\356, kCAN=\377\263,
1370 kCMD=\377\267, kCPY=\377\363, kCRT=\377\364,
1371 kDL=\377\366, kEND=\377\301, kEOL=\377\311,
1372 kEXT=\377\367, kFND=\377\370, kHLP=\377\371,
1373 kHOM=\377\260, kIC=\377\340, kLFT=\377\264,
1374 kMOV=\377\306, kMSG=\377\304, kNXT=\377\272,
1375 kOPT=\377\372, kPRT=\377\275, kPRV=\377\262,
1376 kRDO=\377\315, kRES=\377\374, kRIT=\377\266,
1377 kRPL=\377\373, kSAV=\377\307, kSPD=\377\303,
1378 kUND=\377\337, kbeg=\377\300, kcan=\377\243, kcbt=\377\0,
1379 kclo=\377\343, kclr=\377\341, kcmd=\377\245,
1380 kcpy=\377\265, kcrt=\377\305, kctab=\377\237,
1381 kcub1=\377\244, kcud1=\377\251, kcuf1=\377\246,
1382 kcuu1=\377\241, kdch1=\377\254, kdl1=\377\274,
1383 ked=\377\314, kel=\377\310, kend=\377\250, kent=\377\320,
1384 kext=\377\270, kf1=\377\201, kf10=\377\212,
1385 kf11=\377\256, kf12=\377\257, kf13=\377\213,
1386 kf14=\377\214, kf15=\377\215, kf16=\377\216,
1387 kf17=\377\217, kf18=\377\220, kf19=\377\221,
1388 kf2=\377\202, kf20=\377\222, kf21=\377\223,
1389 kf22=\377\224, kf23=\377\333, kf24=\377\334,
1390 kf25=\377\225, kf26=\377\226, kf27=\377\227,
1391 kf28=\377\230, kf29=\377\231, kf3=\377\203,
1392 kf30=\377\232, kf31=\377\233, kf32=\377\234,
1393 kf33=\377\235, kf34=\377\236, kf35=\377\276,
1394 kf36=\377\277, kf37=\377\321, kf38=\377\322,
1395 kf39=\377\323, kf4=\377\204, kf40=\377\324,
1396 kf41=\377\325, kf42=\377\326, kf43=\377\327,
1397 kf44=\377\330, kf45=\377\331, kf46=\377\332,
1398 kf47=\377\316, kf48=\377\317, kf5=\377\205, kf6=\377\206,
1399 kf7=\377\207, kf8=\377\210, kf9=\377\211, kfnd=\377\346,
1400 khlp=\377\350, khome=\377\240, khts=\377\342,
1401 kich1=\377\253, kil1=\377\273, kind=\377\261,
1402 kmov=\377\351, kmrk=\377\355, kmsg=\377\345,
1403 knp=\377\252, knxt=\377\312, kopn=\377\357,
1404 kopt=\377\353, kpp=\377\242, kprt=\377\255,
1405 kprv=\377\302, krdo=\377\336, kref=\377\354,
1406 kres=\377\360, krfr=\377\347, kri=\377\271,
1407 krmir=\377\313, krpl=\377\362, krst=\377\352,
1408 ksav=\377\361, kslt=\377\247, kspd=\377\335,
1409 ktbc=\377\344, kund=\377\365, mvpa=\E!%p1%02d, op=\ER,
1410 rep=\Eg%p2%{32}%+%c%p1%c, rev=\E(, ri=\EI, rmcup=\Eh\ER,
1411 rmso=\E), rmul=\E], rs1=\ER, setb=\E@%p1%Pb%gb%gf%d%d,
1412 setf=\E@%p1%Pf%gb%gf%d%d, sgr0=\E}\E]\E>\E), smcup=\Ei,
1416 qnxt|qnxt4|QNX4 terminal,
1419 qnxm|QNX4 with mouse events,
1421 chr=\E/, cvr=\E", is1=\E/0t, mcub=\E/>1h, mcub1=\E/>7h,
1422 mcud=\E/>1h, mcud1=\E/>1l\E/>9h, mcuf=\E/>1h\E/>9l,
1423 mcuf1=\E/>7l, mcuu=\E/>6h, mcuu1=\E/>6l, rmicm=\E/>2l,
1424 smicm=\E/>2h, use=qnx4,
1429 # Monochrome QNX4 terminal or console. Setting this terminal type will
1430 # allow an application running on a color console to behave as if it
1431 # were a monochrome terminal. Output will be through stdout instead of
1432 # console writes because the term routines will recognize that the
1433 # terminal name starts with 'qnxt'.
1435 qnxtmono|Monochrome QNX4 terminal or console,
1439 # From: Federico Bianchi <bianchi@pc-arte2.arte.unipi.it>, 1 Jul 1998
1440 # (esr: commented out <scp> and <rmcup> to avoid warnings.)
1441 # (TD: derive from original qnx4 entry)
1442 qnxt2|QNX 2.15 serial terminal,
1444 civis@, cnorm@, cvvis@, dch1@, ich1@, kRES@, kRPL@, kUND@, kspd@,
1445 rep@, rmcup@, rmso=\E>, setb@, setf@, smcup@, smso=\E<, use=qnx4,
1447 # QNX ANSI terminal definition
1450 colors#8, cols#80, lines#25, ncv#19, pairs#64, wsl#80,
1451 acsc=Oa``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1452 bel=^G, clear=\E[2J\E[H, cr=\r, csr=\E[%i%p1%d;%p2%dr,
1453 cup=\E[%i%p1%d;%p2%dH$<5>, cvvis=\E[?12;25h,
1454 dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM,
1455 dl1=\E[1M, dsl=\E[r, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
1456 el1=\E[1K\E[X, flash=\E[?5h$<200>\E[?5l, fsl=\E[?6h\E8,
1457 home=\E[H, hpa=\E[%i%p1%dG, ich=\E[%p1%d@, ich1=\E[1@,
1458 il=\E[%p1%dL, il1=\E[1L, ind=\E[S, invis=\E[9m,
1459 is2=\E>\E[?1l\E[?7h\E[0;10;39;49m, is3=\E(B\E)0,
1460 kBEG=\ENn, kCAN=\E[s, kCMD=\E[t, kCPY=\ENs, kCRT=\ENt,
1461 kDL=\ENv, kEXT=\ENw, kFND=\ENx, kHLP=\ENy, kHOM=\E[h,
1462 kLFT=\E[d, kNXT=\E[u, kOPT=\ENz, kPRV=\E[v, kRIT=\E[c,
1463 kcan=\E[S, kcbt=\E[Z, kclo=\ENc, kclr=\ENa, kcmd=\E[G,
1464 kcpy=\E[g, kctab=\E[z, kdch1=\E[P, kdl1=\E[p, kend=\E[Y,
1465 kext=\E[y, kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EOA,
1466 kf13=\EOp, kf14=\EOq, kf15=\EOr, kf16=\EOs, kf17=\EOt,
1467 kf18=\EOu, kf19=\EOv, kf2=\EOQ, kf20=\EOw, kf21=\EOx,
1468 kf22=\EOy, kf23=\EOz, kf24=\EOa, kf25=\E[1~, kf26=\E[2~,
1469 kf27=\E[3~, kf28=\E[4~, kf29=\E[5~, kf3=\EOR, kf30=\E[6~,
1470 kf31=\E[7~, kf32=\E[8~, kf33=\E[9~, kf34=\E[10~,
1471 kf35=\E[11~, kf36=\E[12~, kf37=\E[17~, kf38=\E[18~,
1472 kf39=\E[19~, kf4=\EOS, kf40=\E[20~, kf41=\E[21~,
1473 kf42=\E[22~, kf43=\E[23~, kf44=\E[24~, kf45=\E[25~,
1474 kf46=\E[26~, kf47=\E[27~, kf48=\E[28~, kf5=\EOT, kf6=\EOU,
1475 kf7=\EOV, kf8=\EOW, kf9=\EOX, kfnd=\ENf, khlp=\ENh,
1476 khts=\ENb, kich1=\E[@, kil1=\E[`, kind=\E[a, kmov=\ENi,
1477 kmrk=\ENm, kmsg=\ENe, knp=\E[U, kopn=\ENo, kopt=\ENk,
1478 kpp=\E[V, kref=\ENl, kres=\ENp, krfr=\ENg, kri=\E[b,
1479 krpl=\ENr, krst=\ENj, ksav=\ENq, kslt=\E[T, ktbc=\ENd,
1480 kund=\ENu, ll=\E[99H, nel=\EE, op=\E[39;49m, ri=\E[T,
1481 rmacs=^O, rmam=\E[?7l, rmso=\E[27m, rmul=\E[24m,
1482 rs1=\017\E[?7h\E[0;39;49m$<2>\E>\E[?1l,
1483 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1484 setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
1486 setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}
1488 sgr=\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p4%t;5%;%?%p3%p1
1489 %|%t;7%;%?%p7%t;9%;m%?%p9%t\016%e\017%;,
1490 sgr0=\E[m\017, smacs=^N, smam=\E[?7h,
1491 tsl=\E7\E1;24r\E[?6l\E[25;%i%p1%dH, use=ansi+arrows,
1492 use=ansi+local, use=ansi+rep, use=ansi+inittabs,
1493 use=ansi+sgrbold, use=att610+cvis0, use=decid+cpr,
1496 qansi|QNX ANSI with console writes,
1497 daisy, xhpa, use=qansi-g,
1499 qansi-t|QNX ANSI without console writes,
1502 qansi-m|QNX ANSI with mouse,
1504 chr=\E[, cvr=\E], is1=\E[0t, mcub=\E[>1h, mcub1=\E[>7h,
1505 mcud=\E[>1h, mcud1=\E[>1l\E[>9h, mcuf=\E[>1h\E[>9l,
1506 mcuf1=\E[>7l, mcuu=\E[>6h, mcuu1=\E[>6l, rmicm=\E[>2l,
1507 smicm=\E[>2h, use=qansi,
1509 qansi-w|QNX ANSI for windows,
1514 # SCO console and SOS-Syscons console for 386bsd
1515 # (scoansi: had unknown capabilities
1516 # :Gc=N:Gd=K:Gh=M:Gl=L:Gu=J:Gv=\072:\
1517 # :GC=E:GD=B:GH=D:GL=\64:GU=A:GV=\63:GR=C:
1518 # :G1=?:G2=Z:G3=@:G4=Y:G5=;:G6=I:G7=H:G8=<:\
1519 # :CW=\E[M:NU=\E[N:RF=\E[O:RC=\E[P:\
1520 # :WL=\E[S:WR=\E[T:CL=\E[U:CR=\E[V:\
1521 # I renamed GS/GE/HM/EN/PU/PD/RT and added klone+sgr-dumb, based
1522 # on the <smacs>=\E[12m -- esr)
1524 # klone+sgr-dumb is an error since the acsc does not match -TD
1526 # In this description based on SCO's keyboard(HW) manpage list of default
1527 # function key values:
1528 # F13-F24 are shifted F1-F12
1529 # F25-F36 are control F1-F12
1530 # F37-F48 are shift+control F1-F12
1532 # hpa/vpa work in the console, but not in scoterm:
1536 # SCO's terminfo uses
1539 # which do not work (console or scoterm).
1541 # Console documents only 3 attributes can be set with SGR (so we don't use sgr).
1542 scoansi-old|SCO Extended ANSI standard crt (5.0.5),
1543 OTbs, am, bce, eo, xon, NQ,
1544 colors#8, cols#80, it#8, lines#25, pairs#64,
1545 acsc=+/\,.-\230.\2310[5566778899::;;<<==>>FFGGHHIIJJKKLLMMNN
1546 OOPPQQRRSSTTUUVVWWXX`\204a0fxgqh2jYk?lZm@nEqDtCu4vAwBx3
1548 bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z,
1549 civis=\E[=14;12C, clear=\E[H\E[2J, cnorm=\E[=10;12C,
1550 cub1=^H, cup=\E[%i%p1%d;%p2%dH, cvvis=\E[=0;12C,
1551 dch=\E[%p1%dP, dch1=\E[P, dispc=\E[=%p1%dg, ed=\E[m\E[J,
1552 el=\E[m\E[K, el1=\E[1K, home=\E[H, ht=^I, hts=\EH,
1553 ich=\E[%p1%d@, ich1=\E[@, ind=\E[S, invis=\E[8m, kbeg=\E[E,
1554 kcbt=\E[Z, kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V,
1555 kf11=\E[W, kf12=\E[X, kf13=\E[Y, kf15=\E[a, kf16=\E[b,
1556 kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f,
1557 kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k,
1558 kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O,
1559 kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t,
1560 kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y,
1561 kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\,
1562 kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{,
1563 kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, kich1=\E[L,
1564 knp=\E[G, kpp=\E[I, op=\E[0;37;40m, rc=\E8, rev=\E[7m,
1565 ri=\E[T, rmacs=\E[10m, rmam=\E[?7l, rmso=\E[m, rmul=\E[m,
1566 sc=\E7, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
1567 sgr0=\E[0;10m, smacs=\E[12m, smam=\E[?7h, smso=\E[7m,
1568 smul=\E[4m, use=ansi+arrows, use=ansi+idl,
1569 use=ansi+local, use=ecma+index,
1571 scoansi-new|SCO Extended ANSI standard crt (5.0.6),
1573 civis=\E[=0c, cnorm=\E[=1c, csr=\E[%i%p1%d;%p2%dr,
1574 cvvis=\E[=2c, mgc=\E[=r, oc=\E[51m, op=\E[50m,
1575 rep=\E[%p1%d;%p2%db, rmm=\E[=11L,
1576 sgr=\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?
1577 %p7%t;8%;%?%p9%t;12%e;10%;m,
1578 smgb=\E[=1;0m, smgbp=\E[=1;%i%p1%dm,
1579 smglp=\E[=2;%i%p1%dm, smgr=\E[=3;0m,
1580 smgrp=\E[=3;%i%p1%dm, smgt=\E[=0;0m,
1581 smgtp=\E[=0;%i%p1%dm, smm=\E[=10L,
1582 wind=\E[%i%p1%d;%p2%d;%i%p3%d;%p4%dr,
1584 # make this easy to change...
1585 scoansi|SCO Extended ANSI standard crt,
1590 # Sent by Stefan Stapelberg <stefan@rent-a-guru.de>, 24 Feb 1997, this is
1591 # from SGI's terminfo database. SGI's entry shows F9-F12 with the codes
1592 # for the application keypad mode. We have added iris-ansi-ap rather than
1593 # change the original to keypad mode.
1595 # (iris-ansi: added rmam/smam based on init string -- esr)
1597 # This entry, and those derived from it, is used in xwsh (also known as
1598 # winterm). Some capabilities that do not fit into the terminfo model
1599 # include the shift- and control-functionkeys:
1601 # F1-F12 generate different codes when shift or control modifiers are used.
1605 # control-F1 \E[025q
1607 # In application keypad mode, F9-F12 generate codes like vt100 PF1-PF4, i.e.,
1608 # \EOP to \EOS. The shifted and control modifiers still do the same thing.
1610 # The cursor keys also have different codes:
1611 # control-up \E[162q
1612 # control-down \E[165q
1613 # control-left \E[159q
1614 # control-right \E[168q
1617 # shift-down \E[164q
1618 # shift-left \E[158q
1619 # shift-right \E[167q
1621 # control-tab \[072q
1623 iris-ansi|iris-ansi-net|IRIS emulating 40 line ANSI terminal (almost VT100),
1625 cols#80, it#8, lines#40,
1626 bel=^G, bold=\E[1m, clear=\E[H\E[2J,
1627 cnorm=\E[9/y\E[12/y\E[=6l, cr=\r, cud1=\n,
1628 cup=\E[%i%p1%d;%p2%dH,
1629 cvvis=\E[10/y\E[=1h\E[=2l\E[=6h, ed=\E[J, el=\E[K,
1630 el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=\ED,
1631 is2=\E[?1l\E>\E[?7h\E[100g\E[0m\E7\E[r\E8, kDC=\E[P,
1632 kEND=\E[147q, kHOM=\E[143q, kLFT=\E[158q, kPRT=\E[210q,
1633 kRIT=\E[167q, kSPD=\E[218q, kcbt=\E[Z, kdch1=^?,
1634 kend=\E[146q, kent=\r, kf1=\E[001q, kf10=\E[010q,
1635 kf11=\E[011q, kf12=\E[012q, kf2=\E[002q, kf3=\E[003q,
1636 kf4=\E[004q, kf5=\E[005q, kf6=\E[006q, kf7=\E[007q,
1637 kf8=\E[008q, kf9=\E[009q, kich1=\E[139q, knp=\E[154q,
1638 kpp=\E[150q, kprt=\E[209q, krmir=\E[146q, kspd=\E[217q,
1639 nel=\EE, pfkey=\EP101;%p1%d.y%p2%s\E\\, rc=\E8,
1640 rev=\E[7m, ri=\EM, rmam=\E[?7l, rmso=\E[m, rmul=\E[m, sc=\E7,
1641 sgr0=\E[m, smam=\E[?7h, smso=\E[1;7m, smul=\E[4m,
1642 tbc=\E[3g, use=ansi+arrows, use=ansi+idl, use=ansi+local,
1644 iris-ansi-ap|IRIS ANSI in application-keypad mode,
1645 is2=\E[?1l\E=\E[?7h, kent=\EOM, use=iris-ansi,
1647 # From the man-page, this is a quasi-vt100 emulator that runs on SGI's IRIX
1648 # (T.Dickey 98/1/24)
1649 iris-color|xwsh|IRIX ANSI with color,
1651 csr=\E[%i%p1%d;%p2%dr, dch=\E[%p1%dP, dim=\E[2m,
1652 ech=\E[%p1%dX, ich=\E[%p1%d@, rmul=\E[24m, rs1=\Ec,
1653 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
1654 use=ecma+italics, use=vt100+enq, use=klone+color,
1657 #### OpenBSD consoles
1659 # From: Alexei Malinin <Alexei.Malinin@mail.ru>; October, 2011.
1661 # The following terminal descriptions for the AMD/Intel PC console
1662 # were prepared based on information contained in the OpenBSD-4.9
1663 # termtypes.master and wscons(4) & vga(4) manuals (2010, November).
1665 # Added bce based on testing with tack -TD
1666 # Added several capabilities to pccon+base, reading wsemul_vt100_subr.c -TD
1667 # Changed kbs to DEL and removed keys that duplicate stty settings -TD
1669 # Notes from testing with vttest:
1670 # fails wrapping test
1672 # identifies as vt200 with selective erase, but does not implement DECSCA
1675 # ESC # 8 DEC Screen Alignment Test (DECALN).
1676 # CSI ? 5 h Reverse Video (DECSCNM).
1678 pccon+keys|OpenBSD PC keyboard keys,
1679 kbs=^?, kend=\E[8~, kent=\r, kf1=\E[11~, kf10=\E[21~,
1680 kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
1681 kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
1682 kf19=\E[33~, kf2=\E[12~, kf20=\E[34~, kf21=\E[35~,
1683 kf22=\E[36~, kf23=\E[37~, kf24=\E[38~, kf3=\E[13~,
1684 kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
1685 kf9=\E[20~, khome=\E[7~, krfr=^R, use=ansi+arrows,
1687 pccon+sgr+acs0|sgr and simple ASCII pseudographics for OpenBSD PC console,
1688 acsc=+>\,<-\^.v0#`+a:f\\h#i#j+k+l+m+n+o~p-q-r-s_t+u+v+w+x|y#
1690 bold=\E[1m, rev=\E[7m, rmso=\E[27m,
1691 sgr=\E[0%?%p1%p3%|%t;7%;%?%p6%t;1%;%?%p2%t;4%;m,
1692 sgr0=\E[m, smso=\E[7m,
1693 pccon+sgr+acs|sgr and default ASCII pseudographics for OpenBSD PC console,
1694 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1695 bold=\E[1m, enacs=\E)0, rev=\E[7m, rmacs=\E(B, rmso=\E[27m,
1696 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t\E(0%e
1698 sgr0=\E[m\E(B, smacs=\E(0, smso=\E[7m,
1699 # underline renders as color
1700 pccon+colors|ANSI colors for OpenBSD PC console,
1703 op=\E[49;39m, use=klone+color,
1704 # OpenBSD uses wscons,
1705 # + which does not implement DECSCNM or anything comparable, so it does not
1707 # + it renders underline using color.
1708 pccon+base|base capabilities for OpenBSD PC console,
1709 am, km, mc5i, msgr, npc, nxon, xenl, xon,
1710 cols#80, it#8, lines#24,
1711 bel=^G, cr=\r, cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH,
1712 dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, el1=\E[1K,
1713 home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\ED, nel=\EE,
1714 ri=\EM, rmam=\E[?7l, rmul=\E[24m, rs2=\Ec, smam=\E[?7h,
1715 smul=\E[4m, tbc=\E[3g, use=ansi+cpr, use=ansi+csr,
1716 use=ansi+erase, use=ansi+idl, use=ansi+local,
1718 pccon0-m|OpenBSD PC console without colors & with simple ASCII pseudographics,
1719 use=pccon+sgr+acs0, use=pccon+base, use=pccon+keys,
1720 pccon0|OpenBSD PC console with simple ASCII pseudographics,
1721 use=pccon0-m, use=pccon+colors,
1722 pccon-m|OpenBSD PC console without colors,
1723 use=pccon+base, use=pccon+sgr+acs, use=pccon+keys,
1724 use=ansi+enq, use=vt220+cvis,
1725 pccon|OpenBSD PC console,
1726 use=pccon-m, use=pccon+colors,
1728 #### NetBSD consoles
1730 # pcvt termcap database entries (corresponding to release 3.31)
1731 # Author's last edit-date: [Fri Sep 15 20:29:10 1995]
1733 # (For the terminfo master file, I translated these into terminfo syntax.
1734 # Then I dropped all the pseudo-HP entries. we don't want and can't use
1735 # the :Xs: flag. Then I split :is: into a size-independent <is1> and a
1736 # size-dependent <is2>. Finally, I added <rmam>/<smam> -- esr)
1738 # NOTE: <ich1> has been taken out of this entry. for reference, it should
1739 # be <ich1=\E[@>. For discussion, see ICH/ICH1 VERSUS RMIR/SMIR below.
1740 # (esr: added <civis> and <cnorm> to resolve NetBSD Problem Report #4583)
1741 pcvtXX|pcvt VT200 emulator (DEC VT220),
1742 am, km, mir, msgr, xenl,
1744 acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
1746 bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H,
1747 cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[P,
1748 el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\ED,
1749 is1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, kbs=^?,
1750 kdch1=\E[3~, kf1=\E[17~, kf2=\E[18~, kf3=\E[19~,
1751 kf4=\E[20~, kf5=\E[21~, kf6=\E[23~, kf7=\E[24~, kf8=\E[25~,
1752 khome=\E[1~, kich1=\E[2~, kll=\E[4~, knp=\E[6~, kpp=\E[5~,
1753 nel=\EE, rev=\E[7m, rf=/usr/share/tabset/vt100, ri=\EM,
1754 rmacs=\E(B, rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>,
1755 rmso=\E[27m, rmul=\E[24m,
1756 rs1=\Ec\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr0=\E[m,
1757 smacs=\E(0, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
1758 smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=ansi+apparrows,
1759 use=ansi+csr, use=ansi+erase, use=ansi+idl,
1760 use=ansi+local, use=decid+cpr, use=ecma+index,
1763 # NetBSD/FreeBSD VT220 terminal emulator console (pc keyboard & monitor)
1764 # termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1765 # 50 lines entries; 80 columns
1766 pcvt25|DEC VT220 emulation with 25 lines,
1768 is2=\E[1;25r\E[25;1H, use=pcvtXX,
1769 pcvt28|DEC VT220 emulation with 28 lines,
1771 is2=\E[1;28r\E[28;1H, use=pcvtXX,
1772 pcvt35|DEC VT220 emulation with 35 lines,
1774 is2=\E[1;35r\E[35;1H, use=pcvtXX,
1775 pcvt40|DEC VT220 emulation with 40 lines,
1777 is2=\E[1;40r\E[40;1H, use=pcvtXX,
1778 pcvt43|DEC VT220 emulation with 43 lines,
1780 is2=\E[1;43r\E[43;1H, use=pcvtXX,
1781 pcvt50|DEC VT220 emulation with 50 lines,
1783 is2=\E[1;50r\E[50;1H, use=pcvtXX,
1785 # NetBSD/FreeBSD VT220 terminal emulator console (pc keyboard & monitor)
1786 # termcap entries for pure VT220-Emulation and 25, 28, 35, 40, 43 and
1787 # 50 lines entries; 132 columns
1788 pcvt25w|DEC VT220 emulation with 25 lines and 132 cols,
1790 is2=\E[1;25r\E[25;1H, use=pcvtXX,
1791 pcvt28w|DEC VT220 emulation with 28 lines and 132 cols,
1793 is2=\E[1;28r\E[28;1H, use=pcvtXX,
1794 pcvt35w|DEC VT220 emulation with 35 lines and 132 cols,
1796 is2=\E[1;35r\E[35;1H, use=pcvtXX,
1797 pcvt40w|DEC VT220 emulation with 40 lines and 132 cols,
1799 is2=\E[1;40r\E[40;1H, use=pcvtXX,
1800 pcvt43w|DEC VT220 emulation with 43 lines and 132 cols,
1802 is2=\E[1;43r\E[43;1H, use=pcvtXX,
1803 pcvt50w|DEC VT220 emulation with 50 lines and 132 cols,
1805 is2=\E[1;50r\E[50;1H, use=pcvtXX,
1807 # OpenBSD implements a color variation
1808 pcvt25-color|DEC VT220 emulation with 25 lines and color,
1810 is2=\E[1;25r\E[25;1H, kf1=\EOP, kf10=\E[29~, kf11=\E[23~,
1811 kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
1812 kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
1813 kf2=\EOQ, kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf5=\E[17~,
1814 kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~, use=pcvtXX,
1817 # Terminfo entries to enable the use of the ncurses library in colour on a
1818 # NetBSD-arm32 console (only tested on a RiscPC).
1819 # Created by Dave Millen <dmill@globalnet.co.uk> 22.07.98
1820 # modified codes for setf/setb to setaf/setab, then to klone+color, corrected
1821 # typo in invis - TD
1822 arm100|arm100-am|Arm(RiscPC) ncurses compatible (for 640x480),
1825 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
1826 blink=\E[5m$<2>, bold=\E[1m$<2>, cub1=^H, cud1=\n,
1827 cuf1=\E[C$<2>, cuu1=\E[A$<2>, invis=\E[8m$<2>, ka1=\E[q,
1828 ka3=\E[s, kb2=\E[r, kc1=\E[p, kc3=\E[n, kent=\E[M, kf0=\E[y,
1829 kf1=\E[P, kf10=\E[x, kf2=\E[Q, kf3=\E[R, kf4=\E[S, kf5=\E[t,
1830 kf6=\E[u, kf7=\E[v, kf8=\E[l, kf9=\E[w, rev=\E[7m$<2>,
1831 rmacs=^O, rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m$<2>,
1833 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
1834 %;%?%p7%t;8%;m%?%p9%t\016%e\017%;$<2>,
1835 sgr0=\E[m\017$<2>, smacs=^N, smam=\E[?7h, smkx=\E[?1h\E=,
1836 smso=\E[7m$<2>, smul=\E[4m$<2>, use=ansi+csr,
1837 use=ansi+local, use=ecma+sgr, use=vt100+4bsd,
1840 arm100-w|arm100-wam|Arm(RiscPC) ncurses compatible (for 1024x768),
1841 cols#132, lines#50, use=arm100,
1843 # NetBSD/x68k console VT200 emulator. This port runs on a 68K machine
1844 # manufactured by Sharp for the Japanese market.
1845 # From Minoura Makoto <minoura@netlaputa.or.jp>, 12 May 1996
1846 x68k|x68k-ite|NetBSD/x68k ITE,
1848 kbs=^?, kclr=\E[9~, khlp=\E[28~, use=vt220-base,
1851 # Entry for the DNARD OpenFirmware console, close to ANSI but not quite.
1853 # (still unfinished, but good enough so far.)
1854 ofcons|DNARD OpenFirmware console,
1857 bel=^G, blink=\2335m, bold=\2331m, clear=^L, cr=\r,
1858 cub=\233%p1%dD, cub1=\233D, cud=\233%p1%dB, cud1=\233B,
1859 cuf=\233%p1%dC, cuf1=\233C, cup=\233%i%p1%d;%p2%dH,
1860 cuu=\233%p1%dA, cuu1=\233A, dch=\233%p1%dP, dch1=\233P,
1861 dim=\2332m, dl=\233%p1%dM, dl1=\233M, ed=\233J, el=\233K,
1862 flash=^G, ht=^I, ich=\233%p1%d@, ich1=\233@, il=\233%p1%dL,
1863 il1=\233L, ind=\n, invis=\2338m, kbs=^H, kcub1=\233D,
1864 kcud1=\233B, kcuf1=\233C, kcuu1=\233A, kdch1=\233P,
1865 kf1=\2330P, kf10=\2330M, kf2=\2330Q, kf3=\2330W,
1866 kf4=\2330x, kf5=\2330t, kf6=\2330u, kf7=\2330q, kf8=\2330r,
1867 kf9=\2330p, knp=\233/, kpp=\233?, nel=\r\n, rev=\2337m,
1868 rmso=\2330m, rmul=\2330m,
1869 sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p5%t2%;%?%p7%t8
1870 %;%?%p1%p3%|%t;7%;m,
1871 sgr0=\2330m, smso=\2337m, smul=\2334m,
1873 # NetBSD "wscons" emulator in VT220 mode.
1874 # This entry is based on the NetBSD termcap entry. The emulator renders
1875 # underlined text in red. Colors are otherwise usable. NetBSD developers
1876 # prefer to not specify the corresponding ncv value.
1878 # Testing the emulator and reading the source code (NetBSD 2.0), it appears
1879 # that "vt220" is inaccurate. There are a few VT220-features, but most of the
1880 # VT220 screens in vttest do not work with this emulator. For instance, it
1881 # identifies itself (primary DA response) as a VT220 with selective erase. But
1882 # the selective erase feature does not work. The secondary response is copied
1883 # from Kermit's emulation of VT220, does not correspond to actual VT220. At
1884 # the level of detail in a termcap, it is a passable emulator, since ECH does
1885 # work. Don't use it on a VMS system -TD
1886 wsvt25|NetBSD wscons in 25 line DEC VT220 mode,
1888 colors#8, lines#25, pairs#64,
1889 is2=\E[r\E[25;1H, kdch1=\E[3~, kend=\E[8~, kf1=\E[11~,
1890 kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
1891 khome=\E[7~, op=\E[m, rs1=\Ec, setab=\E[4%p1%dm,
1892 setaf=\E[3%p1%dm, use=vt220,
1894 wsvt25m|NetBSD wscons in 25 line DEC VT220 mode with Meta,
1897 # NetBSD 6.x still uses wscons, with minor changes (2014/02/22) -TD
1899 # TERM is by default vt100 for the console, wsvt25 for other ttys.
1900 # Initial testing set TERM=xterm, based on comments by developers, found too
1901 # many differences to continue in that path. However, test-results may be
1902 # useful to people curious about compatibility with xterm.
1904 # Testing with tack:
1906 # Failed: cbt, bel, flash, cvvis, smul (color), blink, invis
1907 # There is color-bleeding in the color-pairs screen.
1908 # Attributes do not work with color
1910 # Failed: kf1-kf4, kf13-kf48, khome, kend
1911 # (effectively xterm-r6 for function-keys)
1912 # None of the function or cursor key-modifiers are encoded.
1913 # Console hangs in the smm/rmm test if TERM=xterm, does not show test
1915 # Testing with vttest:
1916 # -------------------
1917 # Identifies as VT220 with selective erase
1918 # (however, selective erase refers to DECSCA, SPA)
1919 # Does not implement VT52
1920 # Uses spaces to simulate double-size characters
1921 # Does not support 8-bit controls
1922 # Does not support VT220 reports
1923 # Does not support send/receive mode
1924 # Supports ECH (like rxvt)
1925 # Does not support DECSCA
1926 # Does not support any of the ISO-6429 cursor-movement
1927 # Does not support any of the ISO-6429 miscellaneous tests
1928 # (SL/SR also leave unexpected char on screen too)
1929 # Background does not change in menu 11.6.9 (SGR 22-27)
1930 # None of the xterm special features tests work
1931 netbsd6|NetBSD wscons in 25 line DEC VT100 mode,
1934 # `rasterconsole' provided by 4.4BSD, NetBSD and OpenBSD on SPARC, and
1936 rcons|BSD rasterconsole,
1938 # Color version of above. Color currently only provided by NetBSD.
1939 rcons-color|BSD rasterconsole with ANSI color,
1942 op=\E[m, setab=\E[4%p1%dm, setaf=\E[3%p1%dm, use=rcons,
1944 # mgterm -- MGL/MGL2, MobileGear Graphic Library
1945 # for PocketBSD,PocketLinux,NetBSD/{hpcmips,mac68k}
1946 # -- the setf/setb are probably incorrect, more likely setaf/setab -TD
1947 # -- compare with cons25w
1948 mgterm|MGL/MGL2 MobileGear Graphic Library,
1949 OTbs, OTpt, am, bce, bw, eo, km, msgr, npc,
1950 colors#8, cols#80, it#8, lines#18, pairs#64,
1951 bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cr=\r, cub1=^H,
1952 cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[P,
1953 dim=\E[30;1m, ech=\E[%p1%dX, el1=\E[1K, home=\E[H,
1954 hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@, ich1=\E[@, ind=\E[S,
1955 kb2=\E[E, kcbt=\E[Z, kdch1=^?, kend=\E[F, kf1=\E[M,
1956 kf10=\E[V, kf11=\E[W, kf12=\E[X, kf2=\E[N, kf3=\E[O,
1957 kf4=\E[P, kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U,
1958 kich1=\E[L, knp=\E[G, kpp=\E[I, nel=\E[E, op=\E[x, rev=\E[7m,
1959 ri=\E[T, rmso=\E[m, rs2=\E[x\E[m\Ec, setb=\E[4%p1%dm,
1960 setf=\E[3%p1%dm, sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd,
1961 use=ansi+arrows, use=ansi+csr, use=ansi+erase,
1962 use=ansi+idl, use=ansi+local, use=ecma+index,
1964 #### FreeBSD console entries
1966 # Originally from termcap:
1968 # From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
1969 # Andrey Chernov maintains the FreeBSD termcap distributions.
1971 # Note: Users of FreeBSD 2.1.0 and older versions must either upgrade
1972 # or comment out the :cb: capability in the console entry.
1974 # Alexander Lukyanov reports:
1975 # I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
1976 # Now el1 clears not only to the line beginning, but also a large chunk
1977 # of previous line. But there is another bug - ech does not work at all.
1979 # syscons, sc - the console driver
1982 # common entry without semigraphics
1983 # Bug: The <op> capability resets attributes.
1984 # Bug? The ech and el1 attributes appear to move the cursor in some cases; for
1985 # instance el1 does if the cursor is moved to the right margin first. Removed
1986 # by T.Dickey 97/5/3 (ech=\E[%p1%dX, el1=\E[1K)
1988 # Setting colors turns off reverse; we cannot guarantee order, so use ncv.
1989 # Note that this disables standout with color.
1991 # The emulator sends different strings based on shift- and control-keys,
1993 # F13-F24 are shifted F1-F12
1994 # F25-F36 are control F1-F12
1995 # F37-F48 are shift+control F1-F12
1996 cons25w|ansiw|ansi80x25-raw|FreeBSD console (25-line raw mode),
1997 am, bce, bw, eo, msgr, npc,
1998 cols#80, it#8, lines#25, ncv#21,
1999 bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, cnorm=\E[=0C,
2000 cr=\r, cub1=^H, cup=\E[%i%p1%d;%p2%dH, cvvis=\E[=1C,
2001 dch=\E[%p1%dP, dch1=\E[P, dim=\E[30;1m, ech=\E[%p1%dX,
2002 home=\E[H, hpa=\E[%i%p1%d`, ht=^I, ich=\E[%p1%d@,
2003 ich1=\E[@, ind=\E[S, kb2=\E[E, kcbt=\E[Z, kdch1=^?,
2004 kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W, kf12=\E[X,
2005 kf13=\E[Y, kf14=\E[Z, kf15=\E[a, kf16=\E[b, kf17=\E[c,
2006 kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f, kf21=\E[g,
2007 kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k, kf26=\E[l,
2008 kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O, kf30=\E[p,
2009 kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t, kf35=\E[u,
2010 kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y, kf4=\E[P,
2011 kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\, kf44=\E[],
2012 kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{, kf5=\E[Q,
2013 kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, kich1=\E[L, knp=\E[G,
2014 kpp=\E[I, nel=\E[E, op=\E[x, rc=\E8, rev=\E[7m, ri=\E[T,
2015 rmso=\E[m, rs2=\E[x\E[m\Ec, sc=\E7,
2016 sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p5%t;30;1%;%?
2018 sgr0=\E[m, smso=\E[7m, vpa=\E[%i%p1%dd, use=ansi+arrows,
2019 use=ansi+erase, use=ansi+idl, use=ansi+local,
2020 use=ecma+index, use=klone+color,
2022 cons25|ansis|ansi80x25|FreeBSD console (25-line ANSI mode),
2023 acsc=-\030.^Y0\333`\004a\260f\370g\361h\261i\025j\331k\277l
2024 \332m\300n\305q\304t\303u\264v\301w\302x\263y\363z\362~
2027 cons25-debian|FreeBSD console with debian backspace (25-line ANSI mode),
2028 kbs=^?, kdch1=\E[3~, use=cons25,
2029 cons25-m|ansis-mono|ansi80x25-mono|FreeBSD console (25-line mono ANSI mode),
2031 bold@, dim@, op@, rmul=\E[m, setab@, setaf@,
2032 sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m,
2033 smul=\E[4m, use=cons25,
2034 cons30|ansi80x30|FreeBSD console (30-line ANSI mode),
2035 lines#30, use=cons25,
2036 cons30-m|ansi80x30-mono|FreeBSD console (30-line mono ANSI mode),
2037 lines#30, use=cons25-m,
2038 cons43|ansi80x43|FreeBSD console (43-line ANSI mode),
2039 lines#43, use=cons25,
2040 cons43-m|ansi80x43-mono|FreeBSD console (43-line mono ANSI mode),
2041 lines#43, use=cons25-m,
2042 cons50|ansil|ansi80x50|FreeBSD console (50-line ANSI mode),
2043 lines#50, use=cons25,
2044 cons50-m|ansil-mono|ansi80x50-mono|FreeBSD console (50-line mono ANSI mode),
2045 lines#50, use=cons25-m,
2046 cons60|ansi80x60|FreeBSD console (60-line ANSI mode),
2047 lines#60, use=cons25,
2048 cons60-m|ansi80x60-mono|FreeBSD console (60-line mono ANSI mode),
2049 lines#60, use=cons25-m,
2050 cons25r|pc3r|ibmpc3r|cons25-koi8-r|FreeBSD console w/koi8-r cyrillic,
2051 acsc=-\030.^Y0\215`\004a\220f\234h\221i\025j\205k\203l\202m
2052 \204n\212q\0t\206u\207v\211w\210x\201y\230z\231~
2055 cons25r-m|pc3r-m|ibmpc3r-mono|cons25-koi8r-m|FreeBSD console w/koi8-r cyrillic (mono),
2057 op@, rmul=\E[m, setab@, setaf@,
2058 sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p5
2059 %t;30;1%;%?%p6%t;1%;m,
2060 smul=\E[4m, use=cons25r,
2061 cons50r|cons50-koi8r|FreeBSD console w/koi8-r cyrillic (50 lines),
2062 lines#50, use=cons25r,
2063 cons50r-m|cons50-koi8r-m|FreeBSD console w/koi8-r cyrillic (50-line mono),
2064 lines#50, use=cons25r-m,
2065 cons60r|cons60-koi8r|FreeBSD console w/koi8-r cyrillic (60 lines),
2066 lines#60, use=cons25r,
2067 cons60r-m|cons60-koi8r-m|FreeBSD console w/koi8-r cyrillic (60-line mono),
2068 lines#60, use=cons25r-m,
2069 # ISO 8859-1 FreeBSD console
2070 cons25l1|cons25-iso8859|FreeBSD console w/iso 8859-1 chars,
2071 acsc=+\253\,\273-\030.\031`\201a\202f\207g\210i\247j\213k
2072 \214l\215m\216n\217o\220p\221q\222r\223s\224t\225u
2073 \226v\227w\230x\231y\232z\233~\237,
2075 cons25l1-m|cons25-iso-m|FreeBSD console w/iso 8859-1 chars (mono),
2077 bold@, dim@, op@, rmul=\E[m, setab@, setaf@,
2078 sgr=\E[0%?%p1%t;2;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m,
2079 smul=\E[4m, use=cons25l1,
2080 cons50l1|cons50-iso8859|FreeBSD console w/iso 8859-1 chars (50 lines),
2081 lines#50, use=cons25l1,
2082 cons50l1-m|cons50-iso-m|FreeBSD console w/iso 8859-1 chars (50-line mono),
2083 lines#50, use=cons25l1-m,
2084 cons60l1|cons60-iso|FreeBSD console w/iso 8859-1 chars (60 lines),
2085 lines#60, use=cons25l1,
2086 cons60l1-m|cons60-iso-m|FreeBSD console w/iso 8859-1 chars (60-line mono),
2087 lines#60, use=cons25l1-m,
2089 # vt - virtual terminal console driver
2091 # Starting with FreeBSD 8, an alternative configuration for syscons is provided,
2092 # which is intended to be xterm-compatible. See for example
2093 # http://svnweb.freebsd.org/base/stable/8/sys/dev/syscons/
2094 # in particular scterm-teken.c
2096 # Some of the documentation refers to this as "vt"; its proper name is "teken".
2098 # The sc(4) manual page states that it is possible to switch between the two
2099 # by editing /boot/loader.conf, adding
2101 # Doing that does not change the default TERM variable. That is hard-coded in
2102 # /etc/ttys, rather than deriving it from the kernel state.
2104 # For FreeBSD 12 and 13:
2105 # ---------------------
2106 # In newer releases, it is no longer possible to boot into a configuration that
2107 # works with syscons. According to efi(4),
2108 # "The vt(4) system console is automatically selected when booting via UEFI."
2109 # See FreeBSD #264226.
2111 # FreeBSD 13 supports 64-bit machines which boot with UEFI:
2112 # https://www.freebsd.org/platforms/
2113 # The i386 platform does not use UEFI (and modifying the loader configuration
2114 # does load sysconf); however because no updates (fixes) are available, most
2115 # developers will regard that as unsupported.
2117 # With FreeBSD 13, even when syscons is loaded (e.g., with the i386 platform),
2118 # its function-keys are not configured. Using
2119 # vidcontrol -T cons25
2122 # When teken is loaded, vidcontrol can switch at runtime between the
2123 # teken/cons25 function keys:
2124 # vidcontrol -T cons25
2125 # vidcontrol -T xterm
2126 # However due to a limitation in the implementation, only the first 12 function
2127 # keys are available. The real syscons supports 48 function keys (using the
2128 # shift and control modifiers), while xterm supports more than twice as many.
2130 # vidcontrol does not change the emulation. As a result, the quarter (17/73) of
2131 # non-function key capabilities which differ between syscons and teken are
2132 # unsupported in the UEFI-based configurations.
2135 # VT100 line-drawing does not work (UTF-8 equivalents do).
2136 # Shift/control modifiers have no effect on special keys.
2137 # Meta does not work.
2139 # supports REP (repeat).
2140 # still does not support left/right margins
2141 # SU/SD work, but not SL/SR
2142 # alternate screen does not work
2143 # ENQ/DA1 is unimplemented (the terminal does not identify itself)
2144 # CPR, XCPR are unimplemented (i.e., vttest and resize are broken)
2145 # implements X11 (original) xterm-mouse.
2147 # UTF-8 line-drawing works, including some double/thick lines
2149 # For FreeBSD 9 and 10:
2150 # --------------------
2151 # The /etc/ttys entries for console and other ttys are all configured to set
2154 # Testing with tack:
2155 # There is no VT100 line-drawing (uses +'s and -'s)
2156 # Shifted f1-f12 give cons25 codes, rather than xterm function-keys
2158 # Testing with vttest:
2159 # Menu 2 diamonds don't work, blink ditto, light background ditto
2160 # The terminal identifies itself as VT100 with AVO
2161 # There is no VT52 support
2162 # There is no doublesize character support
2163 # The terminal supports ECH (like rxvt)
2164 # The terminal does not support send/receive mode
2165 # The terminal supports all of the ISO-6429 cursor-movement
2166 # The terminal supports some of the ISO-6429 miscellaneous tests
2167 # (SL/SR also leave unexpected char on screen too)
2169 # Considering cons25 as a base, the line-drawing mostly works, but is missing
2170 # the cells which happen to have ASCII control-character values:
2171 # - ^X arrow pointing up
2172 # . ^Y arrow pointing down
2176 # Those are removed from this entry's acsc string to avoid confusion.
2177 # The resulting description provides correct line-drawing and function-keys -TD
2178 teken-2018|teken as of 2018,
2180 acsc=0\333a\260f\370g\361h\261j\331k\277l\332m\300n\305q
2181 \304t\303u\264v\301w\302x\263y\363z\362~\371,
2182 cvvis@, hpa=\E[%i%p1%dG, hts=\EH, kdch1=\E[3~, kent=\r,
2183 kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\EOQ,
2184 kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
2185 kf8=\E[19~, kf9=\E[20~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2186 rmir=\E[4l, smir=\E[4h, tbc=\E[3g, use=vt220+cvis,
2189 teken-2022|teken as of 2022,
2190 am, bce, eo, mir, msgr, npc, NQ,
2191 cols#80, it#8, lines#25, ncv#21, U8#1,
2192 bold=\E[1m, cr=\r, cub1=^H, dim=\E[30;1m, ech=\E[%p1%dX,
2193 ind=\E[S, kent=\r, nel=\E[E, op=\E[x, rev=\E[7m, ri=\E[T,
2194 rmso=\E[27m, rs2=\E[x\E[m\Ec,
2195 sgr=\E[0%?%p1%t;2;7%;%?%p3%t;7%;%?%p5%t;30;1%;%?%p6%t;1%;m,
2196 sgr0=\E[m, use=vt220+cvis, use=ecma+index,
2197 use=ansi+arrows, use=ansi+csr, use=ansi+cup,
2198 use=ansi+erase, use=ansi+idc, use=ansi+idl,
2199 use=ansi+local, use=ansi+rca2, use=ansi+sgrso,
2200 use=ansi+tabs, use=klone+color,
2202 teken-vt+fkeys|teken's xterm special keys,
2203 kend=\E[F, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
2204 kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~,
2205 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
2208 teken-sc+fkeys|teken's syscons special keys,
2209 kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
2210 kf12=\E[X, kf2=\E[N, kf3=\E[O, kf4=\E[P, kf5=\E[Q, kf6=\E[R,
2211 kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H, kich1=\E[L,
2214 teken-sc|teken imitating syscons,
2215 use=teken-sc+fkeys, use=teken-2022,
2217 teken|teken-vt|teken imitating xterm,
2218 xenl, use=teken-vt+fkeys, use=xterm+x11mouse,
2221 teken-16color|teken using 16 colors,
2222 use=ibm+16color, use=teken,
2224 #### 386BSD and BSD/OS Consoles
2227 # This was the original 386BSD console entry (I think).
2228 # Some places it's named oldpc3|oldibmpc3.
2229 # From: Alex R.N. Wetmore <aw2t@andrew.cmu.edu>
2230 origpc3|origibmpc3|IBM PC 386BSD console,
2231 OTbs, am, bw, eo, xon,
2233 acsc=j\331k\277l\332m\300n\305q\304t\303u\264v\301w\302x
2235 bold=\E[7m, clear=\Ec, cub1=^H, cup=\E[%i%p1%2d;%p2%2dH,
2236 ed=\E[J, el=\E[K, home=\E[H, ind=\E[S, kcub1=\E[D,
2237 kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, khome=\E[Y, ri=\E[T,
2238 rmso=\E[1;0x\E[2;7x, rmul=\E[1;0x\E[2;7x,
2239 sgr0=\E[m\E[1;0x\E[2;7x, smso=\E[1;7x\E[2;0x,
2240 smul=\E[1;7x\E[2;0x, use=ansi+local1,
2242 # description of BSD/386 console emulator in version 1.0 (supplied by BSDI)
2243 oldpc3|oldibmpc3|old IBM PC BSD/386 console,
2246 bel=^G, bold=\E[=15F, cr=\r, cud1=\n, dim=\E[=8F, dl1=\E[M,
2247 ht=^I, il1=\E[L, ind=\n, kich1=\E[L, kll=\E[F, knp=\E[G,
2248 kpp=\E[I, nel=\r\n, sgr0=\E[=R, use=ansi+arrows,
2250 # Description of BSD/OS console emulator in version 1.1, 2.0, 2.1
2251 # Note, the emulator supports many of the additional console features
2252 # listed in the iBCS2 (e.g. character-set selection) though not all
2253 # are described here. This entry really ought to be upgraded.
2254 # Also note, the console will also work with fewer lines after doing
2255 # "stty rows NN", e.g. to use 24 lines.
2256 # (Color support from Kevin Rosenberg <kevin@cyberport.com>, 2 May 1996)
2257 # Bug: The <op> capability resets attributes.
2258 bsdos-pc|IBM PC BSD/OS console,
2259 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;1%;%?%p3%t;7%;%?%p4%t;5%;%?%p6
2260 %t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
2261 use=bsdos-pc-nobold,
2263 bsdos-pc-nobold|BSD/OS PC console w/o bold,
2264 use=klone+color, use=bsdos-pc-m,
2266 bsdos-pc-m|bsdos-pc-mono|BSD/OS PC console mono,
2267 OTbs, am, eo, km, xon,
2268 cols#80, it#8, lines#25,
2269 bel=^G, clear=\Ec, cr=\r, cub1=^H, cud1=\n,
2270 cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
2271 ind=\n, kich1=\E[L, kll=\E[F, knp=\E[G, kpp=\E[I, nel=\r\n,
2273 sgr=\E[0;10%?%p1%t;7%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7
2274 %t;8%;%?%p9%t;11%;m%?%p5%t\E[=8F%;,
2275 use=ansi+arrows, use=ansi+idl, use=ansi+local,
2278 # Old names for BSD/OS PC console used in releases before 4.1.
2279 pc3|BSD/OS on the PC console,
2280 use=bsdos-pc-nobold,
2281 ibmpc3|pc3-bold|BSD/OS on the PC console with bold instead of underline,
2284 # BSD/OS on the SPARC
2285 bsdos-sparc|Sun SPARC BSD/OS console,
2288 # BSD/OS on the PowerPC
2289 bsdos-ppc|PowerPC BSD/OS console,
2294 # (<acsc>/<rmacs>/<smacs> capabilities aren't in DEC's official entry -- esr)
2296 # Actually (TD pointed this out at the time the acsc string was added):
2297 # VT52 shouldn't define full acsc since most of the cells don't match.
2298 # see VT100 manual page A-31. This is the list that does match:
2307 # The line-drawing happens to work in several terminal emulators, but should
2308 # not be used as a guide to the capabilities of the VT52. Note in particular
2309 # that VT52 does not support line-drawing characters (the scan-X values refer
2310 # to a crude plotting feature) -TD
2313 acsc=+h.k0affggolpnqprrss, rmacs=\EG, rmkx=\E>,
2314 smacs=\EF, smkx=\E=, u8=\E/[KL], use=vt50h, use=vt52-basic,
2316 # This is more likely the "vt52" that you would see in emulation, i.e., no
2317 # keypad, no graphics.
2318 vt52-basic|VT52 for emulators,
2319 cols#80, it#8, lines#24,
2320 bel=^G, clear=\EH\EJ, cr=\r, cub1=\ED, cud1=\EB, cuf1=\EC,
2321 cup=\EY%p1%' '%+%c%p2%' '%+%c, cuu1=\EA, ed=\EJ, el=\EK,
2322 home=\EH, ht=^I, ind=\n, kbs=^H, nel=\r\n, ri=\EI,
2325 vt52+arrows|cursor keys for VT52,
2326 kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA,
2328 #### DEC VT100 and compatibles
2330 # DEC terminals from the VT100 forward are collected here. Older DEC terminals
2331 # and micro consoles can be found in the `obsolete' section. More details on
2332 # the relationship between the VT100 and ANSI X3.64/ISO 6429/ECMA-48 may be
2333 # found near the end of this file.
2335 # Except where noted, these entries are DEC's official terminfos.
2336 # Contact Bill Hedberg <hedberg@hannah.enet.dec.com> of Terminal Support
2337 # Engineering for more information. Updated terminfos and termcaps
2338 # are kept available at ftp://gatekeeper.dec.com/pub/DEC/termcaps.
2340 # In October 1995 DEC sold its terminals business, including the VT and Dorio
2341 # line and trademark, to SunRiver Data Systems. SunRiver has since changed
2342 # its name to Boundless Technologies; see http://www.boundless.com.
2345 # NOTE: Any VT100 emulation, whether in hardware or software, almost
2346 # certainly includes what DEC called the `Level 1 editing extension' codes;
2347 # only the very oldest VT100s lacked these and there probably aren't any of
2348 # those left alive. To capture these, use one of the VT102 entries.
2350 # Note that the <xenl> glitch in vt100 is not quite the same as on the Concept,
2351 # since the cursor is left in a different position while in the
2352 # weird state (concept at beginning of next line, vt100 at end
2353 # of this line) so all versions of vi before 3.7 don't handle
2354 # <xenl> right on vt100. The correct way to handle <xenl> is when
2355 # you output the char in column 80, immediately output CR LF
2356 # and then assume you are in column 1 of the next line. If <xenl>
2357 # is on, am should be on too.
2359 # I assume you have smooth scroll off or are at a slow enough baud
2360 # rate that it doesn't matter (1200? or less). Also this assumes
2361 # that you set auto-nl to "on", if you set it off use vt100-nam
2364 # The padding requirements listed here are guesses. It is strongly
2365 # recommended that xon/xoff be enabled, as this is assumed here.
2367 # The vt100 uses <rs2> and <rf> rather than <is2>/<tbc>/<hts> because the
2368 # tab settings are in non-volatile memory and don't need to be
2369 # reset upon login. Also setting the number of columns glitches
2370 # the screen annoyingly. You can type "reset" to get them set.
2372 # The VT100 series terminals have cursor ("arrows") keys which can operate
2373 # in two different modes: Cursor Mode and Application Mode. Cursor Mode
2374 # is the reset state, and is assumed to be the normal state. Application
2375 # Mode is the "set" state. In Cursor Mode, the cursor keys transmit
2376 # "Esc [ {code}" sequences, conforming to ANSI standards. In Application
2377 # Mode, the cursor keys transmit "Esc O <code>" sequences. Application Mode
2378 # was provided primarily as an aid to the porting of VT52 applications. It is
2379 # assumed that the cursor keys are normally in Cursor Mode, and expected that
2380 # applications such as vi will always transmit the <smkx> string. Therefore,
2381 # the definitions for the cursor keys are made to match what the terminal
2382 # transmits after the <smkx> string is transmitted. If the <smkx> string
2383 # is a null string or is not defined, then cursor keys are assumed to be in
2384 # "Cursor Mode", and the cursor keys definitions should match that assumption,
2385 # else the application may fail. It is also expected that applications will
2386 # always transmit the <rmkx> string to the terminal before they exit.
2388 # The VT100 series terminals have an auxiliary keypad, commonly referred to as
2389 # the "Numeric Keypad", because it is a cluster of numeric and function keys.
2390 # The Numeric Keypad which can operate in two different modes: Numeric Mode and
2391 # Application Mode. Numeric Mode is the reset state, and is assumed to be
2392 # the normal state. Application Mode is the "set" state. In Numeric Mode,
2393 # the numeric and punctuation keys transmit ASCII 7-bit characters, and the
2394 # Enter key transmits the same as the Return key (Note: the Return key
2395 # can be configured to send either LF (\015) or CR LF). In Application Mode,
2396 # all the keypad keys transmit "Esc O {code}" sequences. The PF1 - PF4 keys
2397 # always send the same "Esc O {code}" sequences. It is assumed that the keypad
2398 # is normally in Numeric Mode. If an application requires that the keypad be
2399 # in Application Mode then it is expected that the user, or the application,
2400 # will set the TERM environment variable to point to a terminfo entry which has
2401 # defined the <smkx> string to include the codes that switch the keypad into
2402 # Application Mode, and the terminfo entry will also define function key
2403 # fields to match the Application Mode control codes. If the <smkx> string
2404 # is a null string or is not defined, then the keypad is assumed to be in
2405 # Numeric Mode. If the <smkx> string switches the keypad into Application
2406 # Mode, it is expected that the <rmkx> string will contain the control codes
2407 # necessary to reset the keypad to "Normal" mode, and it is also expected that
2408 # applications which transmit the <smkx> string will also always transmit the
2409 # <rmkx> string to the terminal before they exit.
2411 # Here's a diagram of the VT100 keypad keys with their bindings.
2412 # The top line is the name of the key (some DEC keyboards have the keys
2413 # labelled somewhat differently, like GOLD instead of PF1, but this is
2414 # the most "official" name). The second line is the escape sequence it
2415 # generates in Application Keypad mode (where "$" means the ESC
2416 # character). The third line contains two items, first the mapping of
2417 # the key in terminfo, and then in termcap.
2418 # _______________________________________
2419 # | PF1 | PF2 | PF3 | PF4 |
2420 # | $OP | $OQ | $OR | $OS |
2421 # |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
2423 # | $Ow | $Ox | $Oy | $Om |
2424 # |_kf9__k9_|_kf10_k;_|_kf0__k0_|_________|
2426 # | $Ot | $Ou | $Ov | $Ol |
2427 # |_kf5__k5_|_kf6__k6_|_kf7__k7_|_kf8__k8_|
2429 # | $Oq | $Or | $Os | enter |
2430 # |_ka1__K1_|_kb2__K2_|_ka3__K3_| $OM |
2433 # |___kc1_______K4____|_kc3__K5_|_kent_@8_|
2435 # Note however, that the arrangement of the 5-key ka1-kc3 do not follow the
2436 # terminfo guidelines. That is a compromise used to assign the remaining
2437 # keys on the keypad to kf5-kf0, used on older systems with legacy termcap
2439 vt100+keypad|DEC VT100 numeric keypad no fkeys,
2440 ka1=\EOq, ka3=\EOs, kb2=\EOr, kc1=\EOp, kc3=\EOn,
2441 vt100+pfkeys|DEC VT100 numeric keypad (kf1-kf4),
2442 kent=\EOM, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
2444 vt100+fnkeys|DEC VT100 numeric keypad (kf0-kf10),
2445 kf0=\EOy, kf10=\EOx, kf5=\EOt, kf6=\EOu, kf7=\EOv, kf8=\EOl,
2446 kf9=\EOw, use=vt100+pfkeys,
2448 # A better adaptation to modern keyboards such as the PC's, which have a dozen
2449 # function keys and the keypad 2,4,6,8 keys are labeled with arrows keys, is to
2450 # use the 5-key arrangement to model the arrow keys as suggested in the
2451 # terminfo guidelines:
2452 # _______________________________________
2453 # | PF1 | PF2 | PF3 | PF4 |
2454 # | $OP | $OQ | $OR | $OS |
2455 # |_kf1__k1_|_kf2__k2_|_kf3__k3_|_kf4__k4_|
2457 # | $Ow | $Ox | $Oy | $Om |
2458 # |_ka1__K1_|_________|_ka3__K3_|_________|
2460 # | $Ot | $Ou | $Ov | $Ol |
2461 # |_________|_kb2__K2_|_________|_________|
2463 # | $Oq | $Or | $Os | enter |
2464 # |_kc1__K4_|_________|_kc3__K5_| $OM |
2467 # |___________________|_________|_kent_@8_|
2469 vt220+keypad|DEC VT220 numeric keypad,
2470 ka1=\EOw, ka3=\EOy, kb2=\EOu, kc1=\EOq, kc3=\EOs, ka2=\EOx,
2471 kb1=\EOt, kb3=\EOv, kc2=\EOr, use=vt100+pfkeys,
2473 vt100+enq|ncurses extension for VT100-style ENQ,
2474 u8=\E[?1;2c, use=ansi+enq,
2475 vt102+enq|ncurses extension for VT102-style ENQ,
2476 u8=\E[?6c, use=ansi+enq,
2478 # And here, for those of you with orphaned VT100s lacking documentation, is
2479 # a description of the soft switches invoked when you do `Set Up'.
2481 # Scroll 0-Jump Shifted 3 0-#
2482 # | 1-Smooth | 1-British pound sign
2483 # | Autorepeat 0-Off | Wrap Around 0-Off
2485 # | | Screen 0-Dark Bkg | | New Line 0-Off
2486 # | | | 1-Light Bkg | | | 1-On
2487 # | | | Cursor 0-Underline | | | Interlace 0-Off
2488 # | | | | 1-Block | | | | 1-On
2490 # 1 1 0 1 1 1 1 1 0 1 0 0 0 0 1 0 <--Standard Settings
2492 # | | | Auto XON/XOFF 0-Off | | | Power 0-60 Hz
2493 # | | | 1-On | | | 1-50 Hz
2494 # | | ANSI/VT52 0-VT52 | | Bits Per Char. 0-7 Bits
2495 # | | 1-ANSI | | 1-8 Bits
2496 # | Keyclick 0-Off | Parity 0-Off
2498 # Margin Bell 0-Off Parity Sense 0-Odd
2501 # The following SET-UP modes are assumed for normal operation:
2502 # ANSI_MODE AUTO_XON/XOFF_ON NEWLINE_OFF 80_COLUMNS
2503 # WRAP_AROUND_ON JUMP_SCROLL_OFF
2504 # Other SET-UP modes may be set for operator convenience or communication
2505 # requirements; I recommend
2506 # AUTOREPEAT_ON BLOCK_CURSOR MARGIN_BELL_OFF SHIFTED_3_#
2507 # Unless you have a graphics add-on such as Digital Engineering's VT640
2508 # (and even then, whenever it can be arranged!) you should set
2511 # (vt100: I added <rmam>/<smam> based on the init string, also <OTbs>. -- esr)
2512 vt100|vt100-am|DEC VT100 (w/advanced video),
2515 kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, lf1=pf1,
2516 lf2=pf2, lf3=pf3, lf4=pf4, mc0=\E[0i, rmam=\E[?7l,
2517 rmkx=\E[?1l\E>, rs2=\E<\E>\E[?3;4;5l\E[?7;8h\E[r,
2518 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
2519 %;m%?%p9%t\016%e\017%;$<2>,
2520 smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m$<2>,
2521 use=ansi+csr, use=ansi+pp, use=decid+cpr, use=vt100+4bsd,
2524 vt100+4bsd|DEC VT100 from 4.0BSD,
2526 cols#80, it#8, lines#24,
2527 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2528 bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2529 clear=\E[H\E[J$<50>, cr=\r, cub1=^H, cud1=\n,
2530 cuf1=\E[C$<2>, cup=\E[%i%p1%d;%p2%dH$<5>,
2531 cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K$<3>,
2532 enacs=\E(B\E)0, home=\E[H, ht=^I, hts=\EH, ind=\n, kbs=^H,
2533 kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2534 rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O, rmso=\E[m$<2>,
2535 rmul=\E[m$<2>, rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2536 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
2537 %;m%?%p9%t\016%e\017%;$<2>,
2538 sgr0=\E[m\017$<2>, smacs=^N, smso=\E[1;7m$<2>,
2539 smul=\E[4m$<2>, tbc=\E[3g, use=ansi+local,
2541 vt100nam|vt100-nam|VT100 no automargins,
2543 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt100-am,
2544 vt100-vb|DEC VT100 (w/advanced video) & no beep,
2545 bel@, flash=\E[?5h$<100/>\E[?5l, use=vt100,
2547 # Ordinary VT100 in 132 column ("wide") mode.
2548 vt100-w|vt100-w-am|DEC VT100 132 cols (w/advanced video),
2550 rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-am,
2551 vt100-w-nam|vt100-nam-w|DEC VT100 132 cols (w/advanced video no automargin),
2552 cols#132, lines#14, vt@,
2553 rs2=\E>\E[?3h\E[?4l\E[?5l\E[?8h, use=vt100-nam,
2555 # VT100 with no advanced video.
2556 vt100-nav|VT100 without advanced video option,
2558 blink@, bold@, rev@, rmso=\E[m, rmul@, sgr@, sgr0@, smso=\E[7m,
2560 vt100-nav-w|vt100-w-nav|DEC VT100 132 cols 14 lines (no advanced video option),
2561 cols#132, lines#14, use=vt100-nav,
2563 # VT100 with one of the 24 lines used as a status line.
2564 # We put the status line on the top.
2565 vt100-s|vt100-s-top|vt100-top-s|VT100 for use with top sysline,
2568 clear=\E[2;1H\E[J$<50>, csr=\E[%i%i%p1%d;%p2%dr,
2569 cup=\E[%i%p1%{1}%+%d;%p2%dH$<5>, dsl=\E7\E[1;24r\E8,
2570 fsl=\E8, home=\E[2;1H, is2=\E7\E[2;24r\E8,
2571 tsl=\E7\E[1;%p1%dH\E[1K, use=vt100-am,
2573 # Status line at bottom.
2574 # Clearing the screen will clobber status line.
2575 vt100-s-bot|vt100-bot-s|VT100 for use with bottom sysline,
2578 dsl=\E7\E[1;24r\E8, fsl=\E8, is2=\E[1;23r\E[23;1H,
2579 tsl=\E7\E[24;%p1%dH\E[1K, use=vt100-am,
2581 # Most of the `vt100' emulators out there actually emulate a VT102
2582 # This entry (or vt102-nsgr) is probably the right thing to use for
2585 dch1=\E[P, dl1=\E[M, il1=\E[L, rmir=\E[4l, smir=\E[4h,
2587 vt102-w|DEC VT102 in wide mode,
2589 rs3=\E[?3h, use=vt102,
2591 # Many brain-dead PC comm programs that pretend to be `vt100-compatible'
2592 # fail to interpret the ^O and ^N escapes properly. Symptom: the <sgr0>
2593 # string in the canonical vt100 entry above leaves the screen littered
2594 # with little snowflake or star characters (IBM PC ROM character \017 = ^O)
2595 # after highlight turnoffs. This entry should fix that, and even leave
2596 # ACS support working, at the cost of making multiple-highlight changes
2597 # slightly more expensive.
2598 # From: Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995
2599 vt102-nsgr|VT102 no sgr (use if you see snowflakes after highlight changes),
2600 sgr@, sgr0=\E[m, use=vt102,
2602 # VT125 Graphics CRT. Clear screen also erases graphics
2603 # Some VT125's came configured with VT102 support.
2604 vt125|VT125 graphics terminal,
2606 clear=\E[H\E[2J\EPpS(E)\E\\$<50>, use=vt100,
2608 # This isn't a DEC entry, it came from University of Wisconsin.
2609 # (vt131: I added <rmam>/<smam> based on the init string, also <OTbs> -- esr)
2612 cols#80, it#8, lines#24, vt#3,
2613 bel=^G, blink=\E[5m$<2/>, bold=\E[1m$<2/>,
2614 clear=\E[;H\E[2J$<50/>, cr=\r, cub1=^H, cud1=\n,
2615 cuf1=\E[C$<2/>, cup=\E[%i%p1%d;%p2%dH$<5/>,
2616 cuu1=\E[A$<2/>, ed=\E[J$<50/>, el=\E[K$<3/>, home=\E[H,
2617 ht=^I, is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\EOD,
2618 kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP, kf2=\EOQ,
2619 kf3=\EOR, kf4=\EOS, nel=\r\n, rev=\E[7m$<2/>, ri=\EM$<5/>,
2620 rmam=\E[?7h, rmkx=\E[?1l\E>, rmso=\E[m$<2/>,
2622 rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2623 sgr0=\E[m$<2/>, smam=\E[?7h, smkx=\E[?1h\E=,
2624 smso=\E[7m$<2/>, smul=\E[4m$<2/>, use=ansi+csr,
2626 # vt132 - like vt100 but slower and has ins/del line and such.
2627 # I'm told that <smir>/<rmir> are backwards in the terminal from the
2628 # manual and from the ANSI standard, this describes the actual
2629 # terminal. I've never actually used a vt132 myself, so this
2634 dch1=\E[P$<7>, dl1=\E[M$<99>, il1=\E[L$<99>, ind=\n$<30>,
2635 ip=$<7>, rmir=\E[4h, smir=\E[4l, use=vt100,
2637 # This vt220 description maps F5--F9 to the second block of function keys
2638 # at the top of the keyboard. The "DO" key is used as F10 to avoid conflict
2639 # with the key marked (ESC) on the vt220. See vt220d for an alternate mapping.
2640 # PF1--PF4 are used as F1--F4.
2643 vt220-old|vt200-old|DEC VT220 in VT100 emulation mode,
2644 OTbs, OTpt, am, mir, msgr, xenl, xon,
2645 cols#80, lines#24, vt#3,
2647 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2648 bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2649 clear=\E[H\E[2J$<50>, cr=\r, cub1=^H,
2650 cup=\E[%i%p1%d;%p2%dH$<10>, dch1=\E[P, ed=\E[J$<50>,
2651 el=\E[K$<3>, home=\E[H, ht=^I,
2652 if=/usr/share/tabset/vt100, ind=\ED$<20/>,
2653 is2=\E[1;24r\E[24;1H, kf1=\EOP, kf10=\E[29~, kf2=\EOQ,
2654 kf3=\EOR, kf4=\EOS, kf5=\E[17~, kf6=\E[18~, kf7=\E[19~,
2655 kf8=\E[20~, kf9=\E[21~, khome=\E[1~, kich1=\E[2~,
2656 rev=\E[7m$<2>, rf=/usr/share/tabset/vt100,
2657 ri=\EM$<14/>, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l,
2658 rmso=\E[27m, rmul=\E[24m,
2659 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2660 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2661 %p9%t\E(0%e\E(B%;$<2>,
2662 sgr0=\E[m$<2>, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2663 smso=\E[7m, smul=\E[4m, use=ansi+arrows, use=ansi+csr,
2664 use=ansi+idl1, use=ansi+local1, use=vt220+pcedit,
2667 # Here's a picture of the Sun/PC editing keypad:
2668 # +--------+--------+--------+
2669 # | Insert | Home | PageUp |
2670 # +--------+--------+--------+
2671 # | Delete | End | PageDn |
2672 # +--------+--------+--------+
2674 # VT220 emulators such as xterm, using PC-keyboards use a different layout than
2675 # the VT220 keyboard:
2684 vt220+pcedit|editing-keypad for VT220 using PC keyboard,
2685 kdch1=\E[3~, kend=\E[4~, khome=\E[1~, kich1=\E[2~,
2686 knp=\E[6~, kpp=\E[5~,
2687 vt220+vtedit|editing-keypad for VT220 using DEC keyboard,
2688 kdch1=\E[3~, kfnd=\E[1~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
2691 # A much better description of the VT200/220; used to be vt220-8
2692 # changed rmacs/smacs from shift-in/shift-out to vt200-old's explicit G0/G1
2693 # designation to accommodate bug in pcvt -TD
2695 # Here's a picture of the VT220 editing keypad:
2696 # +--------+--------+--------+
2697 # | Find | Insert | Remove |
2698 # +--------+--------+--------+
2699 # | Select | Prev | Next |
2700 # +--------+--------+--------+
2702 # Still, this is a "base" entry. Software emulators commonly leave out the
2703 # DECTCEM feature -TD
2704 vt220-base|DEC VT220 as emulated,
2705 OTbs, am, mir, msgr, xenl, xon,
2706 cols#80, it#8, lines#24, vt#3,
2707 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2708 bel=^G, blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
2709 dch=\E[%p1%dP, dch1=\E[P, ech=\E[%p1%dX, el1=\E[1K,
2710 enacs=\E)0, flash=\E[?5h$<200/>\E[?5l, ht=^I, hts=\EH,
2711 ich=\E[%p1%d@, if=/usr/share/tabset/vt100, ind=\ED,
2712 is2=\E[?7h\E[>\E[?1l\E F\E[?4l, kbs=^H, kcub1=\E[D,
2713 kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kf1=\EOP, kf10=\E[21~,
2714 kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
2715 kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\EOQ,
2716 kf20=\E[34~, kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
2717 kf8=\E[19~, kf9=\E[20~, khlp=\E[28~, krdo=\E[29~, lf1=pf1,
2718 lf2=pf2, lf3=pf3, lf4=pf4, nel=\EE, rev=\E[7m, ri=\EM,
2719 rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, rmso=\E[27m,
2720 rmul=\E[24m, rs1=\E[?3l,
2721 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2722 %p9%t\E(0%e\E(B%;$<2>,
2723 sgr0=\E[m\E(B, smacs=\E(0$<2>, smam=\E[?7h, smir=\E[4h,
2724 smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=ansi+csr,
2725 use=ansi+cup, use=ansi+pp, use=ansi+enq, use=ansi+erase,
2726 use=ansi+idl, use=ansi+local, use=vt220+vtedit,
2728 vt220|vt200|DEC VT220,
2729 use=vt220+cvis, use=vt220-base,
2730 vt220-w|vt200-w|DEC VT220 in wide mode,
2732 rs3=\E[?3h, use=vt220,
2733 vt220-8bit|vt220-8|vt200-8bit|vt200-8|DEC VT220/200 in 8-bit mode,
2734 OTbs, am, mc5i, mir, msgr, xenl, xon,
2735 cols#80, it#8, lines#24, vt#3,
2736 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2737 bel=^G, blink=\2335m, bold=\2331m, clear=\233H\233J, cr=\r,
2738 csr=\233%i%p1%d;%p2%dr, cub=\233%p1%dD, cub1=^H,
2739 cud=\233%p1%dB, cud1=\n, cuf=\233%p1%dC, cuf1=\233C,
2740 cup=\233%i%p1%d;%p2%dH, cuu=\233%p1%dA, cuu1=\233A,
2741 dch=\233%p1%dP, dch1=\233P, dl=\233%p1%dM, dl1=\233M,
2742 ech=\233%p1%dX, ed=\233J, el=\233K, el1=\2331K, enacs=\E)0,
2743 flash=\233?5h$<200/>\233?5l, home=\233H, ht=^I, hts=\EH,
2744 ich=\233%p1%d@, if=/usr/share/tabset/vt100,
2745 il=\233%p1%dL, il1=\233L, ind=\ED,
2746 is2=\233?7h\233>\233?1l\E F\233?4l, kbs=^H,
2747 kcub1=\233D, kcud1=\233B, kcuf1=\233C, kcuu1=\233A,
2748 kdch1=\2333~, kf1=\EOP, kf10=\23321~, kf11=\23323~,
2749 kf12=\23324~, kf13=\23325~, kf14=\23326~, kf17=\23331~,
2750 kf18=\23332~, kf19=\23333~, kf2=\EOQ, kf20=\23334~,
2751 kf3=\EOR, kf4=\EOS, kf6=\23317~, kf7=\23318~, kf8=\23319~,
2752 kf9=\23320~, kfnd=\2331~, khlp=\23328~, khome=\233H,
2753 kich1=\2332~, knp=\2336~, kpp=\2335~, krdo=\23329~,
2754 kslt=\2334~, lf1=pf1, lf2=pf2, lf3=pf3, lf4=pf4, mc0=\233i,
2755 mc4=\2334i, mc5=\2335i, nel=\EE, rc=\E8, rev=\2337m, ri=\EM,
2756 rmacs=\E(B, rmam=\233?7l, rmir=\2334l, rmso=\23327m,
2757 rmul=\23324m, rs1=\233?3l, sc=\E7,
2758 sgr=\2330%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m
2759 %?%p9%t\E(0%e\E(B%;$<2>,
2760 sgr0=\2330m\E(B, smacs=\E(0, smam=\233?7h, smir=\2334h,
2761 smso=\2337m, smul=\2334m, tbc=\2333g, use=vt220+cvis8,
2764 # This VT220 description regards F6--F10 as the second block of function keys
2765 # at the top of the keyboard. This mapping follows the description given
2766 # in the VT220 Programmer Reference Manual and agrees with the labeling
2767 # on some terminals that emulate the VT220. There is no support for an F5.
2768 # See vt220 for an alternate mapping.
2770 vt220d|DEC VT220 in VT100 mode with DEC function key labeling,
2771 kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
2772 kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
2773 kf18=\E[32~, kf19=\E[33~, kf20=\E[34~, kf5@, kf6=\E[17~,
2774 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, use=vt220-old,
2776 vt220-nam|v200-nam|VT220 in VT100 mode with no auto margins,
2778 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h, use=vt220,
2780 # vt220 termcap written Tue Oct 25 20:41:10 1988 by Alex Latzko
2781 # (not an official DEC entry!)
2782 # The problem with real VT220 terminals is they don't send escapes when in
2783 # in VT220 mode. This can be gotten around two ways. 1> don't send
2784 # escapes or 2> put the VT220 into VT100 mode and use all the nifty
2785 # features of VT100 advanced video which it then has.
2787 # This entry takes the view of putting a VT220 into VT100 mode so
2788 # you can use the escape key in emacs and everything else which needs it.
2790 # You probably don't want to use this on a VMS machine since VMS will think
2791 # it has a VT220 and will get fouled up coming out of emacs
2793 # From: Alexander Latzko <latzko@marsenius.rutgers.edu>, 30 Dec 1996
2794 # (Added vt100 <rc>,<sc> to quiet a tic warning -- esr)
2796 vt200-js|vt220-js|DEC VT200 series with jump scroll,
2799 bel=^G, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
2800 cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch1=\E[P, dl1=\E[M,
2801 home=\E[H, ht=^I, il1=\E[L, ind=\ED,
2802 is2=\E[61"p\E[H\E[?3l\E[?4l\E[?1h\E[?5l\E[?6l\E[?7h\E[?8h\E[
2804 kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2805 kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, nel=\r\ED,
2806 rf=/usr/share/tabset/vt100, ri=\EM, rmdc=, rmir=\E[4l,
2807 rmkx=\E[?1l\E>, rmso=\E[27m$<5/>, rmul=\E[24m,
2808 rs1=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, smdc=,
2809 smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m$<5/>, smul=\E[4m,
2810 use=ansi+csr, use=ansi+erase, use=vt220+cvis,
2812 # This was DEC's VT320. Use the purpose-built one below instead
2813 #vt320|DEC VT320 in VT100 emulation mode,
2816 # Use v320n for SCO's LYRIX. Otherwise, use Adam Thompson's vt320-nam.
2818 vt320nam|v320n|DEC VT320 in VT100 emul. mode with NO AUTO WRAP mode,
2820 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h,
2823 # These entries are not DEC's official ones, they were purpose-built for the
2824 # VT320. Here are the designer's notes:
2825 # <kel> is end on a PC kbd. Actually 'select' on a VT. Mapped to
2826 # 'Erase to End of Field'... since nothing seems to use 'end' anyways...
2827 # khome is Home on a PC kbd. Actually 'FIND' on a VT.
2828 # Things that use <knxt> usually use tab anyways... and things that don't use
2829 # tab usually use <knxt> instead...
2830 # kprv is same as tab - Backtab is useless...
2831 # I left out <sgr> because of its RIDICULOUS complexity,
2832 # and the resulting fact that it causes the termcap translation of the entry
2833 # to SMASH the 1k-barrier...
2834 # From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
2835 # (vt320: uncommented <fsl> --esr)
2836 vt320|vt300|DEC VT320 7 bit terminal,
2837 am, mir, msgr, xenl,
2838 cols#80, lines#24, wsl#80,
2839 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2840 bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[H\E[2J, cr=\r,
2841 cub1=^H, cud1=\n, cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP,
2842 dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
2843 home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, ind=\ED,
2844 is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2845 kbs=^?, kdch1=\E[3~, kel=\E[4~, kf10=\E[21~, kf11=\E[23~,
2846 kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
2847 kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
2848 kf20=\E[34~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~,
2849 kf9=\E[20~, khome=\E[1~, kich1=\E[2~, knp=\E[6~, knxt=^I,
2850 kpp=\E[5~, kprv=\E[Z, kslt=\E[4~, nel=\EE, rev=\E[7m,
2851 rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2852 rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m,
2854 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2855 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2856 %p9%t\E(0%e\E(B%;$<2>,
2857 sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2858 smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2859 use=ansi+apparrows, use=ansi+csr, use=ansi+enq,
2860 use=ansi+idl, use=ansi+local, use=dec+pp, use=vt220+cvis,
2861 use=vt220+keypad, use=dec+sl,
2863 vt320-nam|vt300-nam|DEC VT320 7 bit terminal with no am to make SAS happy,
2865 is2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2866 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H, use=vt320,
2867 # We have to init 132-col mode, not 80-col mode.
2868 vt320-w|vt300-w|DEC VT320 wide 7 bit terminal,
2870 is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
2871 rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H, use=vt320,
2872 vt320-w-nam|vt300-w-nam|DEC VT320 wide 7 bit terminal with no am,
2874 is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H,
2875 rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;24r\E[24;1H, use=vt320-w,
2877 # VT330 and VT340 -- These are ReGIS and SIXEL graphics terminals
2878 # which are pretty much a superset of the VT320. They have the
2879 # host writable status line, yet another different DRCS matrix size,
2880 # and such, but they add the DEC Technical character set, Multiple text
2881 # pages, selectable length pages, and the like. The difference between
2882 # the VT330 and VT340 is that the former has only 2 planes and a monochrome
2883 # monitor, the latter has 4 planes and a color monitor. These terminals
2884 # support VT131 and ANSI block mode, but as with much of these things,
2885 # termcap/terminfo doesn't deal with these features.
2887 # Note that this entry is are set up in what was the standard way for GNU
2888 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2889 # keys were switched into application mode at the same time the numeric pad
2890 # is switched into application mode. This changes the definitions of the
2891 # arrow keys. Emacs v19 is smarter and mines its keys directly out of
2892 # your termcap or terminfo entry,
2894 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2895 # (vt340: string capability "sb=\E[M" corrected to "sr";
2896 # also, added <rmam>/<smam> based on the init string -- esr)
2897 vt340|dec-vt340|vt330|dec-vt330|DEC VT340 graphics terminal with 24 line page,
2898 am, eslok, hs, mir, msgr, xenl, xon,
2899 cols#80, it#8, lines#24, vt#3,
2900 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2901 blink=\E[5m, bold=\E[1m, cr=\r, cub1=^H, cud1=\n,
2902 cup=\E[%i%p1%d;%p2%dH, dch=\E[%p1%dP, dch1=\E[P,
2903 dsl=\E[2$~\r\E[1$}\E[K\E[$},
2904 flash=\E[?5h$<200/>\E[?5l, fsl=\E[$}, home=\E[H, ht=^I,
2905 hts=\EH, ich=\E[%p1%d@, ind=\ED,
2906 is2=\E<\E\sF\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r
2908 kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2909 kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2910 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2911 lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
2912 rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2913 rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
2914 rmul=\E[24m, rs1=\E[?3l,
2915 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2916 %p9%t\E(0%e\E(B%;$<2>,
2917 sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smir=\E[4h,
2918 smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2919 tsl=\E[2$~\E[1$}\E[1;%dH, use=ansi+csr, use=ansi+erase,
2920 use=ansi+idl, use=ansi+local, use=vt220+cvis,
2922 # Left/right margins are supported in xterm since patch #279 (2012/05/10)
2923 vt420+lrmm|VT420 left/right margins,
2924 mgc=\E[?69l, smglp=\E[?69h\E[%i%p1%ds,
2925 smglr=\E[?69h\E[%i%p1%d;%p2%ds,
2926 smgrp=\E[?69h\E[%i;%p1%ds,
2928 # DEC doesn't supply a VT400 description, so we add Daniel Glasser's
2929 # (originally written with VT420 as its primary name, and usable for it).
2931 # VT400/420 -- This terminal is a superset of the VT320. It adds the multiple
2932 # text pages and long text pages with selectable length of the VT340, along
2933 # with left and right margins, rectangular area text copy, fill, and erase
2934 # operations, selected region character attribute change operations,
2935 # page memory and rectangle checksums, insert/delete column, reception
2936 # macros, and other features too numerous to remember right now. TERMCAP
2937 # can only take advantage of a few of these added features.
2939 # Note that this entry is set up in what was the standard way for GNU
2940 # Emacs v18 terminal modes to deal with the cursor keys in that the arrow
2941 # keys were switched into application mode at the same time the numeric pad
2942 # is switched into application mode. This changes the definitions of the
2943 # arrow keys. Emacs v19 is smarter and mines its keys directly out of
2944 # your termcap entry,
2946 # From: Daniel Glasser <dag@persoft.persoft.com>, 13 Oct 1993
2947 # (vt400: string capability ":sb=\E[M:" corrected to ":sr=\E[M:";
2948 # also, added <rmam>/<smam> based on the init string -- esr)
2949 vt400|vt400-24|dec-vt400|DEC VT400 24x80 column autowrap,
2950 am, eslok, mir, msgr, xenl, xon,
2951 cols#80, it#8, lines#24, vt#3,
2952 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2953 blink=\E[5m, bold=\E[1m, clear=\E[H\E[J$<10/>, cr=\r,
2954 cub1=^H, cud1=\n, dsl=\E[2$~\r\E[1$}\E[K\E[$},
2955 ed=\E[J$<10/>, el=\E[K$<4/>, flash=\E[?5h$<200/>\E[?5l,
2956 fsl=\E[$}, ht=^I, hts=\EH, ind=\ED,
2957 is2=\E<\E\sF\E>\E[?1h\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r
2959 kbs=^H, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
2960 kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf6=\E[17~,
2961 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, lf1=pf1, lf2=pf2,
2962 lf3=pf3, lf4=pf4, nel=\r\ED, rev=\E[7m,
2963 rf=/usr/share/tabset/vt300, ri=\EM, rmacs=\E(B,
2964 rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[27m, rmul=\E[24m,
2965 rs1=\E<\E[?3l\E[!p\E[?7h,
2966 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2967 %p9%t\E(0%e\E(B%;$<2>,
2968 sgr0=\E[m\E(B, smacs=\E(0, smam=\E[?7h, smkx=\E[?1h\E=,
2969 smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2970 tsl=\E[2$~\E[1$}\E[1;%dH, use=ansi+csr, use=ansi+cup,
2971 use=ansi+idc, use=ansi+idl, use=ansi+local, use=dec+sl,
2974 # (vt420: I removed <kf0>, it collided with <kf10>. I also restored
2975 # a missing <sc> -- esr)
2976 # add msgr and other capabilities from vt220 -TD
2978 am, mir, msgr, xenl, xon,
2979 cols#80, it#8, lines#24, vt#3,
2980 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
2981 bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>,
2982 clear=\E[H\E[2J$<50>, cr=\r, cub1=^H, cud1=\n,
2983 cup=\E[%i%p1%d;%p2%dH$<10>, dch=\E[%p1%dP, dch1=\E[P,
2984 ech=\E[%p1%dX, ed=\E[J$<50>, el=\E[K$<3>, el1=\E[1K,
2985 enacs=\E)0, flash=\E[?5h$<200/>\E[?5l, home=\E[H, ht=^I,
2986 hts=\EH, ich=\E[%p1%d@, if=/usr/share/tabset/vt300,
2987 ind=\ED, is2=\E[1;24r\E[24;1H, is3=\E[?67h\E[64;1"p,
2988 kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
2989 kf1=\EOP, kf10=\E[29~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
2990 kf5=\E[17~, kf6=\E[18~, kf7=\E[19~, kf8=\E[20~, kf9=\E[21~,
2991 nel=\EE, rev=\E[7m$<2>, rf=/usr/share/tabset/vt300,
2992 ri=\EM, rmacs=\E(B$<4>, rmam=\E[?7l, rmir=\E[4l, rmkx=\E>,
2993 rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
2994 rmso=\E[27m, rmul=\E[24m, rs3=\E[?67h\E[64;1"p,
2995 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p4%t;5%;%?%p1%p3%|%t;7%;m%?
2996 %p9%t\E(0%e\E(B%;$<2>,
2997 sgr0=\E[m\E(B$<2>, smacs=\E(0$<2>, smam=\E[?7h,
2998 smir=\E[4h, smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
2999 use=ansi+csr, use=ansi+enq, use=ansi+idl, use=ansi+pp,
3000 use=ansi+local, use=dec+sl, use=vt220+cvis,
3001 use=vt420+lrmm, use=vt220+vtedit,
3003 # DEC VT220 and up support DECUDK (user-defined keys). DECUDK (i.e., pfx)
3004 # takes two parameters, the key and the string. Translating the key is
3005 # straightforward (keys 1-5 are not defined on real terminals, though some
3006 # emulators define these):
3008 # if (key < 16) then value = key;
3009 # else if (key < 21) then value = key + 1;
3010 # else if (key < 25) then value = key + 2;
3011 # else if (key < 27) then value = key + 3;
3012 # else if (key < 30) then value = key + 4;
3013 # else value = key + 5;
3015 # The string must be the hexadecimal equivalent, e.g., "5052494E" for "PRINT".
3016 # There's no provision in terminfo for emitting a string in this format, so the
3017 # application has to know it.
3019 vt420pc|DEC VT420 w/PC keyboard,
3020 kdch1=^?, kend=\E[4~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
3021 kf12=\E[24~, kf13=\E[11;2~, kf14=\E[12;2~, kf15=\E[13;2~,
3022 kf16=\E[14;2~, kf17=\E[15;2~, kf18=\E[17;2~,
3023 kf19=\E[18;2~, kf2=\E[12~, kf20=\E[19;2~, kf21=\E[20;2~,
3024 kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~, kf25=\E[23~,
3025 kf26=\E[24~, kf27=\E[25~, kf28=\E[26~, kf29=\E[28~,
3026 kf3=\E[13~, kf30=\E[29~, kf31=\E[31~, kf32=\E[32~,
3027 kf33=\E[33~, kf34=\E[34~, kf35=\E[35~, kf36=\E[36~,
3028 kf37=\E[23;2~, kf38=\E[24;2~, kf39=\E[25;2~, kf4=\E[14~,
3029 kf40=\E[26;2~, kf41=\E[28;2~, kf42=\E[29;2~,
3030 kf43=\E[31;2~, kf44=\E[32;2~, kf45=\E[33;2~,
3031 kf46=\E[34;2~, kf47=\E[35;2~, kf48=\E[36;2~, kf5=\E[15~,
3032 kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[H,
3033 pctrm=USR_TERM:vt420pcdos:,
3034 pfx=\EP1;1|%?%{16}%p1%>%t%{0}%e%{21}%p1%>%t%{1}%e%{25}%p1%>
3035 %t%{2}%e%{27}%p1%>%t%{3}%e%{30}%p1%>%t%{4}%e%{5}%;%p1%+
3039 vt420pcdos|DEC VT420 w/PC for DOS Merge,
3041 dispc=%?%p1%{19}%=%t\E\023\021%e%p1%{32}%<%t\E%p1%c%e%p1
3042 %{127}%=%t\E\177%e%p1%c%;,
3044 rmsc=\E[?0;0r\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h, sgr@,
3045 sgr0=\E[m, smsc=\E[?1;2r\E[34h, use=vt420pc,
3047 vt420f|DEC VT420 with VT kbd; VT400 mode; F1-F5 used as Fkeys,
3048 kdch1=^?, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
3049 kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
3050 kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
3051 kf2=\E[12~, kf20=\E[34~, kf3=\E[13~, kf4=\E[14~,
3052 kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3053 khome=\E[H, lf1=\EOP, lf2=\EOQ, lf3=\EOR, lf4=\EOS,
3058 vt510pc|DEC VT510 w/PC keyboard,
3060 vt510pcdos|DEC VT510 w/PC for DOS Merge,
3065 # The VT520 is a monochrome text terminal capable of managing up to
3066 # four independent sessions in the terminal. It has multiple ANSI
3067 # emulations (VT520, VT420, VT320, VT220, VT100, VT PCTerm, SCO Console)
3068 # and ASCII emulations (WY160/60, PCTerm, 50/50+, 150/120, TVI 950,
3069 # 925 910+, ADDS A2). This terminfo data is for the ANSI emulations only.
3071 # Terminal Set-Up is entered by pressing [F3], [Caps Lock]/[F3] or
3072 # [Alt]/[Print Screen] depending upon which keyboard and which
3073 # terminal mode is being used. If Set-Up has been disabled or
3074 # assigned to an unknown key, Set-Up may be entered by pressing
3075 # [F3] as the first key after power up, regardless of keyboard type.
3077 use=ansi+rca, use=vt420, use=ansi+tabs,
3082 # I just got a brand new Boundless VT520 with that company's "ANSI 2011"
3083 # Keyboard, which replaces the old LK41R-AA keyboard.
3085 # In trying to get the function keys to work, I had to cobble my own
3086 # terminfo.src entry, since the existing vt520 entry doesn't include most of
3087 # the function keys. If I blend the entries for "vt420f" and "vt220+keypad"
3088 # I seem to get them all -Mike Gran
3089 vt520ansi|Boundless VT520 ANSI,
3090 use=ansi+rca, use=vt420f, use=vt220+keypad,
3093 #### VT100 emulations
3095 # John Hawkinson <jhawk@MIT.EDU> tells us that the EWAN telnet for Windows
3096 # (the best Windows telnet as of September 1995) presents the name `dec-vt100'
3097 # to telnetd. Michael Deutschmann <ldeutsch@mail.netshop.net> informs us
3098 # that this works best with a stock vt100 entry.
3099 dec-vt100|EWAN telnet's vt100 emulation,
3102 # From: Adrian Garside <94ajg2@eng.cam.ac.uk>, 19 Nov 1996
3103 dec-vt220|DOS tnvt200 terminal emulator,
3106 # Zstem340 is an (IMHO) excellent VT emulator for PC's. I recommend it to
3107 # anyone who needs PC VT340 emulation. (or anything below that level, for
3108 # that matter -- DEC's ALL-in-1 seems happy with it, as does INFOPLUS's
3109 # RDBM systems, it includes ReGIS and Sixel support! I'm impressed...
3110 # I can send the address if requested.
3111 # (z340: changed garbled \E[5?l to \E[?5l, DEC smooth scroll off -- esr)
3112 # From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
3113 z340|ZSTEM VT340 terminal emulator 132col 42line,
3115 is2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H,
3116 rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h\E[1;42r\E[42;1H, use=vt320-w,
3117 z340-nam|ZSTEM VT340 terminal emulator 132col 42line (no automatic margins),
3119 is2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H,
3120 rs2=\E>\E[?3h\E[?4l\E[?5l\E[?7l\E[?8h\E[1;42r\E[42;1H, use=z340,
3122 # expect-5.44.1.15/example/tkterm
3123 # a minimal subset of a VT100 (compare with "news-unk).
3125 # The missing "=" in smkx is not a typo (here), but an error in tkterm.
3126 tt|tkterm|Don Libes' tk text widget terminal emulator,
3127 clear=\E[H\E[J, cr=\r, cub1=^H, cud1=\n, cuf1=\E[C,
3128 cup=\E[%p1%d;%p2%dH, cuu1=\E[A, ind=\n, kf1=\EOP, kf2=\EOQ,
3129 kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
3130 kf9=\EOX, rmkx=\E[?1l\E>, rmso=\E[m, smkx=\E[?1h\E,
3137 # nsterm*|Apple_Terminal - AppKit Terminal.app
3139 # Terminal.app is a Terminal emulator bundled with NeXT's NeXTSTEP and
3140 # OPENSTEP/Mach operating systems, and with Apple's Rhapsody, Mac OS X
3141 # Server and Mac OS X operating systems. There is also a
3142 # "terminal.app" in GNUstep, but I believe it to be an unrelated
3143 # codebase and I have not attempted to describe it here.
3145 # For NeXTSTEP, OPENSTEP/Mach, Rhapsody and Mac OS X Server 1.0, you
3146 # are pretty much on your own. Use "nsterm-7-m" and hope for the best.
3147 # You might also try "nsterm-7" and "nsterm-old" if you suspect your
3148 # version supports color.
3150 # To determine the version of Terminal.app you're using by running:
3152 # echo "$TERM_PROGRAM" "$TERM_PROGRAM_VERSION"
3154 # For Apple_Terminal v309+, use "nsterm-256color" (or "nsterm-bce")
3156 # For Apple_Terminal v200+, use "nsterm-16color" (a.k.a. "nsterm")
3158 # For Apple_Terminal v71+/v100+, use "nsterm-bce".
3160 # For Apple_Terminal v51+, use "nsterm-7-c" or "nsterm-7-c-s".
3162 # For Apple_Terminal v41+, use "nsterm-old", or "nsterm-s".
3164 # For all earlier versions (Apple_Terminal), try "nsterm-7-m"
3165 # (monochrome) or "nsterm-7" (color); "nsterm-7-m-s" and "nsterm-7-s"
3166 # might work too, but really you're on your own here since these
3167 # systems are very obsolete and I can't test them. I do welcome
3168 # patches, though :).
3172 # For GNUstep_Terminal, you're probably best off using "linux" or
3173 # writing your own terminfo.
3175 # For MacTelnet, you're on your own. It's a different codebase, and
3176 # seems to be somewhere between "vt102", "ncsa" and "xterm-color".
3178 # For iTerm.app, see "iterm".
3181 # The AppKit Terminal.app descriptions all have names beginning with
3182 # "nsterm". Note that the statusline (-s) versions use the window
3183 # titlebar as a phony status line, and may produce warnings during
3184 # compilation as a result ("tsl uses 0 parameters, expected 1".)
3185 # Ignore these warnings, or even ignore these entries entirely. Apps
3186 # which need to position the cursor or do other fancy stuff inside the
3187 # status line won't work with these entries. They're primarily useful
3188 # for programs like Pine which provide simple notifications in the
3189 # status line. Please note that non-ASCII characters don't work right
3190 # in the status line, since Terminal.app incorrectly interprets their
3191 # Unicode codepoints as MacRoman codepoints (in earlier Mac OS X
3192 # versions) or only accepts status lines consisting entirely of
3193 # characters from the first 256 Unicode positions (including C1 but
3196 # The Mythology* of AppKit Terminal.app:
3198 # In the days of NeXTSTEP 0.x and 1.x there were two incompatible
3199 # bundled terminal emulators, Shell and Terminal. Scott Hess wrote a
3200 # shareware replacement for Terminal called "Stuart" which NeXT bought
3201 # and used as the basis for the Terminal.app in NeXTSTEP 2+,
3202 # OPENSTEP/Mach, Apple Rhapsody, Mac OS X Server 1.0, and Mac OS X. I
3203 # don't know the TERM_PROGRAM and TERM_PROGRAM_VERSION settings or
3204 # capabilities for the early versions, but I believe that the
3205 # TERM_PROGRAM_VERSION may have been reset at some point.
3207 # The early versions were tailored to the NeXT character set. Sometime
3208 # after the Apple acquisition the encoding was switched to MacRoman
3209 # (initially with serious altcharset bugs due to incomplete conversion
3210 # of the old NeXT code,) and then later to UTF-8. Also sometime during
3211 # or just prior to the early days of Mac OS X, the Terminal grew ANSI
3212 # 8-color support (initially buggy when combined with attributes, but
3213 # that was later fixed.) More recently, around Mac OS X version 10.3
3214 # or so (Terminal.app v100+) xterm-like 16-color support was added. In
3215 # some versions (for instance 133-1 which shipped with Mac OS X
3216 # version 10.4) this suffered from the <bce> bug, but that seems to
3217 # have been fixed in Mac OS X version 10.5 (Terminal.app v240.2+).
3219 # In the early days of Mac OS X the terminal was fairly buggy and
3220 # would routinely crash under load. Many of these bugs seem to have
3221 # been fixed around Mac OS X version 10.3 (Terminal.app v100+) but
3222 # some may still remain. This change seems to correspond to
3223 # Terminal.app reporting "xterm-color" as $TERM rather than "vt100" as
3224 # it did previously.
3226 # * This may correspond with what actually happened, but I don't
3227 # know. It is based on guesswork, hearsay, private correspondence,
3228 # my faulty memory, and the following online sources and references:
3230 # [1] "Three Scotts and a Duane" by Simson L. Garfinkel
3231 # http://www.nextcomputers.org/NeXTfiles/Articles/NeXTWORLD/93.8/93.8.Dec.Community1.html
3233 # [2] NeXTSTEP entry from Wikipedia, the free encyclopedia
3234 # https://secure.wikimedia.org/wikipedia/en/wiki/Nextstep
3236 # * Renamed the AppKit Terminal.app entry from "Apple_Terminal" to
3237 # "nsterm" to comply with the name length and case conventions and
3238 # limitations of various software packages [notably Solaris terminfo
3239 # and UNIX.] A single Apple_Terminal alias is retained for
3240 # backwards-compatibility.
3242 # * Added function key support (F1-F4). These only work in Terminal.app
3243 # version 51, hopefully the capabilities won't cause problems for people
3246 # * Added "full color" (-c) entries which support the 16-color mode in
3249 # * By default, version 51 uses UTF-8 encoding with broken altcharset
3250 # support, so "ASCII" (-7) entries without altcharset support were
3253 # nsterm - AppKit Terminal.app
3255 # Apple's Mac OS X includes a Terminal.app derived from the old NeXT
3256 # Terminal.app. It is a partial VT100 emulation with some xterm-like
3257 # extensions. This terminfo was written to describe versions 41
3258 # (shipped with Mac OS X version 10.0) and 51 (shipped with Mac OS X
3259 # version 10.1) of Terminal.app.
3261 # Terminal.app runs under the Mac OS X Quartz windowing system (and
3262 # other AppKit-supported windowing systems.) On the Mac OS X machine I
3263 # use, the executable for Terminal.app is:
3264 # /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal
3266 # If you're looking for a description of the full-screen system
3267 # console which runs under Apple's Darwin operating system on PowerPC
3268 # platforms, see the "xnuppc" entry instead.
3270 # There were no function keys in version 41. In version 51, there are
3271 # four working function keys (F1, F2, F3 and F4.) The function keys
3272 # are included in all of these entries.
3274 # It does not support mouse pointer position reporting. Under some
3275 # circumstances the cursor can be positioned using option-click; this
3276 # works by comparing the cursor position and the selected position,
3277 # and simulating enough cursor-key presses to move the cursor to the
3278 # selected position. This technique fails in all but the simplest
3281 # It provides partial ANSI color support (background colors interacted
3282 # badly with bold in version 41, though, as reflected in :ncv:.) The
3283 # monochrome (-m) entries are useful if you've disabled color support
3284 # or use a monochrome monitor. The full color (-c) entries are useful
3285 # in version 51, which doesn't exhibit the background color bug. They
3286 # also enable an xterm-compatible 16-color mode.
3288 # The configurable titlebar is set using xterm-compatible sequences;
3289 # it is used as a status bar in the statusline (-s) entries. Its width
3290 # depends on font sizes and window sizes, but 50 characters seems to
3291 # be the default for an 80x24 window.
3293 # The MacRoman character encoding is used for some of the alternate
3294 # characters in the "MacRoman" entries; the "ASCII" (-7) entries
3295 # disable alternate character set support entirely, and the "VT100"
3296 # (-acs) entries rely instead on Terminal.app's own buggy VT100
3297 # graphics emulation, which seems to think the character encoding is
3298 # the old NeXT charset instead of MacRoman. The "ASCII" (-7) entries
3299 # are useful in Terminal.app version 51, which supports UTF-8 and
3300 # other ASCII-compatible character encodings but does not correctly
3301 # implement VT100 graphics; once VT100 graphics are correctly
3302 # implemented in Terminal.app, the "VT100" (-acs) entries should be
3303 # usable in any ASCII-compatible character encoding [except perhaps
3304 # in UTF-8, where some experts argue for disallowing alternate
3305 # characters entirely.]
3307 # Terminal.app reports "vt100" as the terminal type, but exports
3308 # several environment variables which may aid detection in a shell
3309 # profile (i.e. .profile or .login):
3312 # TERM_PROGRAM=Apple_Terminal
3313 # TERM_PROGRAM_VERSION=41 # in Terminal.app version 41
3314 # TERM_PROGRAM_VERSION=51 # in Terminal.app version 51
3316 # For example, the following Bourne shell script would detect the
3317 # correct terminal type:
3319 # if [ :"$TERM" = :"vt100" -a :"$TERM_PROGRAM" = :"Apple_Terminal" ]
3322 # if [ :"$TERM_PROGRAM_VERSION" = :41 ]
3330 # In a C shell derivative, this would be accomplished by:
3332 # if ( $?TERM && $?TERM_PROGRAM && $?TERM_PROGRAM_VERSION) then
3333 # if ( :"$TERM" == :"vt100" && :"$TERM_PROGRAM" == :"Apple_Terminal" ) then
3334 # if ( :"$TERM_PROGRAM_VERSION" == :41 ) then
3335 # setenv TERM "nsterm-old"
3337 # setenv TERM "nsterm-c-7"
3342 # The '+' entries are building blocks
3343 nsterm+7|AppKit Terminal.app v41+ basic capabilities w/ASCII charset,
3344 am, bw, msgr, xenl, xon,
3345 cols#80, it#8, lines#24,
3346 bel=^G, cr=\r, cub1=^H, cud1=\n, dim=\E[2m, el1=\E[1K, ht=^I,
3347 hts=\EH, ind=\n, kbs=^?, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
3348 kcuu1=\EOA, kent=\EOM, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>,
3349 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
3350 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3351 %p5%t;2%;%?%p7%t;8%;m,
3352 sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, tbc=\E[3g,
3353 use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idl,
3354 use=ansi+local, use=ansi+sgrbold, use=vt100+enq,
3357 nsterm+acs|AppKit Terminal.app v41+ basic capabilities w/VT100 alternate-charset,
3358 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3359 %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
3360 sgr0=\E[m\017, use=nsterm+7, use=vt100+4bsd,
3362 nsterm+mac|AppKit Terminal.app v41+ basic capabilities w/MacRoman alternate-charset,
3363 acsc=+\335\,\334-\366.\3770#`\327a:f\241g\261h#i
3364 \360jjkkllmmnno\370p\370q\321rrssttuuvvwwxxy\262z\263{
3365 \271|\255}\243~\245,
3366 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3367 %p5%t;2%;%?%p7%t;8%;m%?%p9%t\016%e\017%;,
3368 sgr0=\E[m\017, use=nsterm+7, use=vt100+4bsd,
3370 # compare with xterm+sl-twm
3371 nsterm+s|AppKit Terminal.app v41+ status-line (window titlebar) support,
3372 wsl#50, use=xterm+sl-twm,
3374 nsterm+c|AppKit Terminal.app v51+ full color support (including 16 colors),
3375 op=\E[0m, use=ibm+16color,
3377 nsterm+c41|AppKit Terminal.app v41 color support,
3379 op=\E[0m, use=klone+color,
3381 # These are different combinations of the building blocks
3383 # ASCII charset (-7)
3384 nsterm-m-7|nsterm-7-m|AppKit Terminal.app v41+ w/ASCII charset (monochrome),
3387 nsterm-m-s-7|nsterm-7-m-s|AppKit Terminal.app v41+ w/ASCII charset (monochrome w/statusline),
3388 use=nsterm+s, use=nsterm+7,
3390 nsterm-7|AppKit Terminal.app v41+ w/ASCII charset (color),
3391 use=nsterm+c41, use=nsterm+7,
3393 nsterm-7-c|nsterm-c-7|AppKit Terminal.app v51+ w/ASCII charset (full color),
3394 use=nsterm+c, use=nsterm+7,
3396 nsterm-s-7|nsterm-7-s|AppKit Terminal.app v41+ w/ASCII charset (color w/statusline),
3397 use=nsterm+s, use=nsterm+c41, use=nsterm+7,
3399 nsterm-c-s-7|nsterm-7-c-s|AppKit Terminal.app v51+ w/ASCII charset (full color w/statusline),
3400 use=nsterm+s, use=nsterm+c, use=nsterm+7,
3402 # VT100 alternate-charset (-acs)
3403 nsterm-m-acs|nsterm-acs-m|AppKit Terminal.app v41+ w/VT100 alternate-charset (monochrome),
3406 nsterm-m-s-acs|nsterm-acs-m-s|AppKit Terminal.app v41+ w/VT100 alternate-charset (monochrome w/statusline),
3407 use=nsterm+s, use=nsterm+acs,
3409 nsterm-acs|AppKit Terminal.app v41+ w/VT100 alternate-charset (color),
3410 use=nsterm+c41, use=nsterm+acs,
3412 nsterm-c-acs|nsterm-acs-c|AppKit Terminal.app v51+ w/VT100 alternate-charset (full color),
3413 use=nsterm+c, use=nsterm+acs,
3415 nsterm-s-acs|nsterm-acs-s|AppKit Terminal.app v41+ w/VT100 alternate-charset (color w/statusline),
3416 use=nsterm+s, use=nsterm+c41, use=nsterm+acs,
3418 nsterm-c-s-acs|nsterm-acs-c-s|AppKit Terminal.app v51+ w/VT100 alternate-charset (full color w/statusline),
3419 use=nsterm+s, use=nsterm+c, use=nsterm+acs,
3422 nsterm-m|AppKit Terminal.app v41+ w/MacRoman charset (monochrome),
3425 nsterm-m-s|AppKit Terminal.app v41+ w/MacRoman charset (monochrome w/statusline),
3426 use=nsterm+s, use=nsterm+mac,
3428 nsterm-old|AppKit Terminal.app v41+ w/MacRoman charset (color),
3429 use=nsterm+c41, use=nsterm+mac,
3431 nsterm-c|AppKit Terminal.app v51+ w/MacRoman charset (full color),
3432 use=nsterm+c, use=nsterm+mac,
3434 nsterm-s|AppKit Terminal.app v41+ w/MacRoman charset (color w/statusline),
3435 use=nsterm+s, use=nsterm+c41, use=nsterm+mac,
3437 nsterm-c-s|AppKit Terminal.app v51+ w/MacRoman charset (full color w/statusline),
3438 use=nsterm+s, use=nsterm+c, use=nsterm+mac,
3440 # In Mac OS X version 10.5 the format of the preferences has changed
3441 # and a new, more complex technique is needed, e.g.,
3443 # python -c 'import sys,objc;NSUserDefaults=objc.lookUpClass(
3444 # "NSUserDefaults");ud=NSUserDefaults.alloc();
3445 # ud.init();prefs=ud.persistentDomainForName_(
3446 # "com.apple.Terminal");prefs["Window Settings"][
3447 # prefs["Default Window Settings"]]["TerminalType"
3448 # ]=sys.argv[1];ud.setPersistentDomain_forName_(prefs,
3449 # "com.apple.Terminal")' nsterm-16color
3451 # and it is still not settable from the preferences dialog. This is
3452 # tracked under rdar://problem/7365108 and rdar://problem/7365134
3453 # in Apple's bug reporter.
3455 # In OS X 10.5 (Leopard) the TERM which can be set in the preferences dialog
3456 # defaults to xterm-color. Alternative selections are ansi, dtterm, rxvt,
3457 # vt52, vt100, vt102 and xterm.
3458 nsterm-16color|AppKit Terminal.app v240.2+ with Mac OS X version 10.5,
3460 flash=\E[?5h$<200/>\E[?5l, hpa=\E[%i%p1%dG,
3461 kdch1=\E[3~, kend=\E[F, kf10=\E[21~, kf11=\E[23~,
3462 kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
3463 kf16=\E[29~, kf17=\E[31~, kf18=\E[22~, kf19=\E[33~,
3464 kf20=\E[34~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
3465 kf8=\E[19~, kf9=\E[20~, khome=\E[H, knp=\E[6~, kpp=\E[5~,
3466 vpa=\E[%i%p1%dd, kLFT5=\E[5D, kRIT5=\E[5C, use=ansi+idc,
3467 use=xterm+alt47, use=nsterm-c-s-acs, use=vt220+cvis,
3469 # The versions of Terminal.app in Mac OS X version 10.3.x seem to have
3470 # the background color erase feature. The newer version 240.2 in Mac OS X
3471 # version 10.5 does not.
3473 # This entry is based on newsgroup comments by Alain Bench, Christian Ebert,
3474 # and D P Schreber comparing to nsterm-c-s-acs.
3476 # In Mac OS X version 10.4 and earlier, D P Schreber notes that $TERM
3477 # can be set in Terminal.app, e.g.,
3479 # defaults write com.apple.Terminal TermCapString nsterm-bce
3481 # and that it is not set in Terminal's preferences dialog.
3483 # Modified for OS X 10.8, omitting bw based on testing with tack -TD
3486 # * The terminal description matches the default settings.
3487 # * The keyboard is configurable via a dialog.
3488 # * By default khome, kend, knext and kprev are honored only with a
3490 # * There are bindings for control left/right arrow (but not up/down).
3491 # Added those to nsterm-16color, which is the version used for OS X 10.6
3492 # * "Allow VT100 application keypage mode" is by default disabled.
3493 # There is no way to press keypad-comma unless application mode is enabled
3495 # * 132-column mode stopped working during vttest's tests. Consider it broken.
3496 # * CHT, REP, SU, SD are buggy.
3497 # * ECH works (also in Leopard), but is not used here for compatibility.
3498 # * The terminal preferences dialog replaces xterm-color by xterm-16color and
3499 # xterm-256color. However, it adds "nsterm", so it is possible to use the
3500 # nsterm entry from this file to override the MacPorts (20110404) or
3501 # system (20081102) copy of this file.
3502 # + In OS X 10.8 (Mountain Lion) the TERM which can be set in the preferences
3503 # dialog defaults to xterm-256color. Alternative selections are ansi,
3504 # dtterm, rxvt, vt52, vt100, vt102, xterm and xterm-16color. However,
3505 # the menu says "Declare terminal as" without promising to actually emulate
3506 # the corresponding terminals. Indeed, changing TERM does not affect the
3507 # emulation itself. This means that
3508 # + the function-keys do not match for dtterm for kf1-kf4 as well as
3510 # + the color model is the same for each setting of TERM (does not match
3512 # + the shift/control/meta key modifiers from rxvt and xterm variants are not
3513 # recognised except for a few special cases, i.e., kRIT5 and kLFT5.
3514 # + the VT52 emulation does not give a usable shell because screen-clearing
3515 # does not work as expected.
3516 # + selecting "xterm" or "xterm-16color" sets TERM to "xterm-256color".
3517 # + OSX 10.9 (Yosemite) added more extended keys in the default configuration
3518 # as well as unmasking F10 (which had been used in the window manager). Those
3519 # keys are listed in this entry.
3520 nsterm-bce|AppKit Terminal.app v71+/v100.1.8+ with Mac OS X version 10.3/10.4 (bce),
3521 bce, use=nsterm-16color,
3523 # This is tested with OS X 10.8 (Mountain Lion), 2012/08/11
3524 # TERM_PROGRAM_VERSION=309
3525 # Earlier reports state that these differences also apply to OS X 10.7 (Lion),
3526 # TERM_PROGRAM_VERSION=303
3527 nsterm-build309|Terminal.app in OS X 10.8,
3528 use=xterm+256setaf, use=nsterm-bce,
3530 # removed bogus kDC7 -TD
3531 nsterm-build326|Terminal.app in OS X 10.9,
3532 kDC=\E[3;2~, kLFT=\E[1;2D, kRIT=\E[1;2C, kcbt=\E[Z,
3533 kf18=\E[32~, kDC5=\E[3;5~, kLFT3=\Eb, kLFT5=\E[1;5D,
3534 kRIT3=\Ef, kRIT5=\E[1;5C, use=nsterm-build309,
3537 nsterm-build343|Terminal.app in OS X 10.10,
3538 kend=\EOF, khome=\EOH, use=nsterm-build326,
3540 # reviewed Terminal.app in El Capitan (version 2.6 build 361) -TD
3542 # + no VT52 mode for cursor keys, though VT52 screen works in vttest
3543 # + f1-f4 map to pf1-pf4
3544 # + no VT220 support aside from DECTCEM and ECH
3545 # + there are no protected areas. Forget about anything above VT220.
3546 # + in ECMA-48 cursor movement, VPR and HPR fail. Others work.
3547 # + vttest color 11.6.4 and 11.6.5 (bce for ED/EL and ECH/indexing) are bce
3548 # + but bce fails for 11.6.7.2 (test repeat).
3549 # + SD (11.6.7.3) also fails, but SL/SR/SU work.
3550 # + 11.6.6 (test insert/delete char/line with bce) has several failures.
3551 # + normal (not X10 or Highlight tracking) mouse now works.
3552 # + mouse any-event works
3553 # + mouse button-event works
3554 # + in alternate screen:
3556 # mode 1047 fails to restore cursor position (do not use)
3557 # mode 1049 fails to restore screen contents (do not use)
3558 # + dtterm window-modify operations work (some messages are not printed)
3559 # + dtterm window-report gives size of window in characters/pixels as
3560 # well as state of window.
3562 # + there is no difference between cnorm/cvvis
3563 # + has dim/invis/blink (no protect of course)
3564 # + most function keys with shift/control modifiers give beep
3565 # (user can configure, but out-of-the-box is what I record)
3566 # + shift-F5 is \E[25~ through shift-F12 is \E[34~ (skips \E[30~ between
3568 # + kLFT5/kRIT5 work, but not up/down with control-modifier
3569 # + kLFT/kRIT work, but not up/down with shift-modifier
3570 # + there are a few predefined bindings with Alt, but no clear pattern.
3571 # + uses alt-key as UTF-8 "meta" something like xterm altSendsEscape
3572 # Using ncurses test-program with xterm-new:
3574 # Using xterm's scripts:
3575 # + palette for 256-colors is hardcoded.
3576 # + no support for "dynamic colors"
3577 # + no support for tcap-query.
3578 nsterm-build361|Terminal.app in OS X 10.11,
3580 kmous=\E[M, use=nsterm-build343,
3582 # reviewed Terminal.app in High Sierra (version 2.8 build 400) -TD
3583 # Comparing with build361, little has changed, except that italics work.
3584 # Direct-color is not supported, by the way.
3586 # Improved rmso/rmul -TD
3587 nsterm-build400|Terminal.app in OS X 10.13,
3588 rmso=\E[27m, rmul=\E[24m, use=xterm+sm+1006,
3589 use=ecma+italics, use=nsterm-build361,
3591 nsterm-build440|Terminal.app in MacOS 11.6.8,
3592 use=xterm+alt1049, use=nsterm-build400,
3594 # This is an alias which should always point to the "current" version
3595 nsterm|nsterm-256color|Apple_Terminal|AppKit Terminal.app,
3596 use=nsterm-build440,
3602 # iTerm.app from http://iterm.sourceforge.net/ is an alternative (and more
3603 # featureful) terminal emulator for Mac OS X. It is similar enough in
3604 # capabilities to nsterm-16color that I have derived this description from that
3605 # one, but as far as I know they share no code. Many of the features are
3606 # user-configurable, but I attempt only to describe the default configuration
3609 # According to its documentation, iTerm uses terminfo to obtain function key
3610 # definitions. For example, if it is started with TERM=xterm, it uses key
3611 # definitions from that terminal description from the local OSX machine. Those
3612 # $TERM settings may be augmented using the bookmark and profile dialogs.
3613 # However, the behavior seen with tack does not agree with either the terminfo
3614 # description or the function keys in its "xterm" profile.
3618 # reports primary DA as VT100 with AVO: \E[?1;2c
3619 # reports secondary DA as "\E[>0;95;c"
3620 # supports blink and underline
3621 # displays bold text as red
3622 # recognizes all dtterm controls for modifying/querying window
3623 # resizing via escape sequence is very slow
3624 # supports X11R5 mouse (no X10) and XFree86 mouse (button- and event-tracking)
3625 # supports X11R5 alternate screen and XFree86 1049 (no 1047/1048)
3626 # supports CHA, VPA, VPR, but no other ECMA-48 cursor movement such as HPA
3629 # with ncurses test-program:
3630 # ncurses 'k' has problem in second screen; light background does not fill
3631 # with xterm scripts
3632 # can display/alter xterm-256color cube
3633 # can display/alter xterm-88color cube
3634 iTerm.app|iterm|iTerm.app terminal emulator for Mac OS X,
3635 bce, mir, npc, xenl, xon,
3637 blink=\E[5m, bold=\E[1m, cub1=^H, cud1=\n,
3638 cup=\E[%i%p1%d;%p2%dH, el1=\E[1K,
3639 flash=\E[?5h$<200/>\E[?5l, hpa=\E[%i%p1%dG,
3640 kLFT=\E[1;2D, kRIT=\E[1;2C, kbs=^?, kcbt=\E[Z, kdch1=\E[3~,
3641 kend=\EOF, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
3642 kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
3643 knp=\E[6~, kpp=\E[5~, op=\E[0m, rev=\E[7m, ri=\EM,
3644 rmam=\E[?7l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
3645 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?
3647 sgr0=\E[m\017, smam=\E[?7h, smkx=\E[?1h\E=, smso=\E[7m,
3648 smul=\E[4m, vpa=\E[%i%p1%dd, kEND5=\E[1;5F,
3649 kHOM5=\E[1;5H, use=ansi+apparrows, use=ansi+csr,
3650 use=ansi+enq, use=ansi+erase, use=ansi+idc, use=ansi+idl,
3651 use=ansi+local, use=vt100+4bsd, use=vt100+keypad,
3652 use=vt100+pfkeys, use=xterm+alt47, use=xterm+sl-twm,
3653 use=xterm+x11mouse, use=xterm+256setaf, use=vt220+cvis,
3657 # https://iterm2.com/
3658 # https://github.com/gnachman/iTerm2
3659 # ~/Library/Preferences/com.googlecode.iterm2.plist
3660 # "iTerm" stalled in 2009. A different set of developers began "iTerm2".
3666 # 365 tests passed, 196 known bugs, 2 tests fail intermittently
3667 # the known bugs include several of the cursor-movement tests
3668 # the ED, EL tests include those failing intermittently
3669 # DECCOLM, DECERA, DECSED, DECSERA and SPA do not work
3670 # most of the DECRPM, DECRQSS reports fail
3672 # reports primary DA as VT420
3673 # VT420 rectangular operations, as well as DECBI/DEVFI work with margins
3675 # DECSED, and SPA do not work
3676 # REP and SD work, SL/SR/SU do not work
3678 # status-line does not work
3680 # The default settings have blinking-text and keypad-application mode disabled.
3681 # Enabling the latter make it half-working (numlock sends an escape character).
3682 # About half of the modified function-keys are untestable due to preassigned
3685 # iTerm2 3.5.0 comes with a 4-year-old copy of xterm's terminfo (June 2020),
3686 # which is modified, using the ncurses TERMINFO_DIRS variable to substitute
3688 # + xterm-nrc and xterm+pcfN are removed
3689 # + the developer made changes to adapt it to the 16-year-old version of
3690 # ncurses bundled with MacOS, i.e., changing the mouse protocol to the
3691 # legacy X11 format and reducing the number of colors to 32k (in more than
3692 # one place). In the former case, the developer was confused about why that
3693 # was necessary. In the latter, the developer clearly misunderstood how the
3695 # + vt420+lrmm is modified, removing smglr and corrupting mgc (again, developer
3697 # + the developer added a couple of features, misnaming them as "xterm" blocks:
3698 # + a copy of kitty+setal renamed to xterm+setulc (and Setulc) is added, but
3699 # the feature is first mentioned in iTerm2 changes in May 2020, while
3700 # it is first mention in kitty changes in December 2016.
3707 # 293 tests pass, 270 tests fail
3709 # minor improvements which do not alter the terminfo
3715 # reports primary DA as VT100 with AVO: \E[?1;2c
3716 # reports secondary DA as "\E[>0;95;0c"
3717 # numeric keypad application mode does not work
3718 # by default, dtterm window-modifications are ignored
3719 # by default, dtterm window-reports return, but icon as "L", window as "l"
3720 # supports SD/SU, no REP, SL, SR
3721 # supports CBT, CHA, VPA, CNL, CPL, VPR (no HPA, CHT, HPR)
3722 # no improvement to XFree86 1047/1048 modes
3724 # in meta-mode, imitates xterm, sending UTF-8
3725 # special-key modifiers based on xterm use incompatible default for alt/meta
3726 # with ncurses test-program:
3728 # no improvement to ncurses 'k'
3729 # with xterm scripts:
3732 # Italic text did not work initially, apparently because upgrading did not
3733 # add/change that preference (set in Preferences, Profiles, Text). A new
3734 # install of iTerm 3.0.15 provides italics by default (blinking text is an
3735 # option in the preferences dialog).
3737 # 2018/01/21: found xterm+sm+1006 did not work with version 3.1.5
3738 # 2018/05/19: xterm+sm+1006 seems to work with 3.1.6beta -TD
3739 iTerm2.app|iterm2|terminal emulator for Mac OS X,
3740 cbt=\E[Z, dim=\E[2m, kEND=\E[1;2F, kHOM=\E[1;2H, ka1@, ka3@,
3741 kb2@, kc1@, kc3@, kent@, kf13=\E[1;2P, kf14=\E[1;2Q,
3742 kf15=\E[1;2R, kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
3743 kf19=\E[18;2~, kf20=\E[19;2~, kf21=\E[20;2~,
3744 kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
3745 kind=\E[1;2B, kri=\E[1;2A, nel=\EE, op=\E[39;49m,
3746 rmso=\E[27m, rmul=\E[24m,
3747 rs2=\E[!p\E[?3;4l\E[4l\E>\E[?1000l,
3748 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?
3749 %p5%t;2%;m%?%p9%t\016%e\017%;,
3750 Smulx=\E[4:%p1%dm, kDN3=\E\E[B, kDN4=\E[1;10B,
3751 kDN5=\E[1;5B, kDN6=\E[1;6B, kEND3=\E[1;9F,
3752 kEND4=\E[1;10F, kEND6=\E[1;6F, kEND7=\E[1;13F,
3753 kEND8=\E[1;14F, kHOM3=\E[1;9H, kHOM4=\E[1;10H,
3754 kHOM6=\E[1;6H, kHOM7=\E[1;13H, kHOM8=\E[1;14H,
3755 kLFT3=\E\E[D, kLFT4=\E[1;10D, kLFT5=\E[1;5D,
3756 kLFT6=\E[1;6D, kNXT3=\E\E[6~, kPRV3=\E\E[5~,
3757 kRIT3=\E\E[C, kRIT4=\E[1;10C, kRIT5=\E[1;5C,
3758 kRIT6=\E[1;6C, kUP3=\E\E[A, kUP4=\E[1;10A, kUP5=\E[1;5A,
3759 kUP6=\E[1;6A, use=ecma+index, use=xterm+alt+title,
3760 use=ecma+italics, use=iterm, use=bracketed+paste,
3763 # xnuppc - Darwin PowerPC Console (a.k.a. "darwin")
3765 # On PowerPC platforms, Apple's Darwin operating system uses a
3766 # full-screen system console derived from a NetBSD framebuffer
3767 # console. It is an ANSI-style terminal, and is not really VT-100
3770 # Under Mac OS X, this is the system console driver used while in
3771 # single-user mode [reachable by holding down Command-S during the
3772 # boot process] and when logged in using console mode [reachable by
3773 # typing ">console" at the graphical login prompt.]
3775 # If you're looking for a description of the Terminal.app terminal
3776 # emulator which runs under the Mac OS X Quartz windowing system (and
3777 # other AppKit-supported windowing systems,) see the "nsterm"
3780 # NOTE: Under Mac OS X version 10.1, the default login window does not
3781 # prompt for user name, instead requiring an icon to be selected from
3782 # a list of known users. Since the special ">console" login is not in
3783 # this list, you must make one of two changes in the Login Window
3784 # panel of the Login section of System Prefs to make the special
3785 # ">console" login accessible. The first option is to enable 'Show
3786 # "Other User" in list for network users', which will add a special
3787 # "Other..." icon to the graphical login panel. Selecting "Other..."
3788 # will present the regular graphical login prompt. The second option
3789 # is to change the 'Display Login Window as:' setting to 'Name and
3790 # password entry fields', which replaces the login panel with a
3791 # graphical login prompt.
3793 # There are no function keys, at least not in Darwin 1.3.
3795 # It has no mouse support.
3797 # It has full ANSI color support, and color combines correctly with
3798 # all three supported attributes: bold, inverse-video and underline.
3799 # However, bold colored text is almost unreadable (bolding is
3800 # accomplished using shifting and or-ing, and looks smeared) so bold
3801 # has been excluded from the list of color-compatible attributes
3802 # [using (ncv)]. The monochrome entry (-m) is useful if you use a
3803 # monochrome monitor.
3805 # There is one serious bug with this terminal emulation's color
3806 # support: repositioning the cursor onto a cell with non-matching
3807 # colors obliterates that cell's contents, replacing it with a blank
3808 # and displaying a colored cursor in the "current" colors. There is
3809 # no complete workaround at present [other than using the monochrome
3810 # (-m) entries,] but removing the (msgr) capability seemed to help.
3812 # The "standout" chosen was simple reverse-video, although a colorful
3813 # standout might be more aesthetically pleasing. Similarly, the bold
3814 # chosen is the terminal's own smeared bold, although a simple
3815 # color-change might be more readable. The color-bold (-b) entries
3816 # uses magenta colored text for bolding instead. The fancy color (-f
3817 # and -f2) entries use color for bold, standout and underlined text
3818 # (underlined text is still underlined, though.)
3820 # Apparently the terminal emulator does support a VT-100-style
3821 # alternate character set, but all the alternate character set
3822 # positions have been left blank in the font. For this reason, no
3823 # alternate character set capabilities have been included in this
3824 # description. The console driver appears to be ASCII-only, so (enacs)
3825 # has been excluded [although the VT-100 sequence does work.]
3827 # The default Mac OS X and Darwin installation reports "vt100" as the
3828 # terminal type, and exports no helpful environment variables. To fix
3829 # this, change the "console" entry in /etc/ttys from "vt100" to
3830 # "xnuppc-WxH", where W and H are the character dimensions of your
3831 # console (see below.)
3833 # The font used by the terminal emulator is apparently one originally
3834 # drawn by Ka-Ping Yee, and uses 8x16-pixel characters. This
3835 # file includes descriptions for the following geometries:
3837 # Pixels Characters Entry Name (append -m for monochrome)
3838 # -------------------------------------------------------------------
3839 # 640x400 80x25 xnuppc-80x25
3840 # 640x480 80x30 xnuppc-80x30
3841 # 720x480 90x30 xnuppc-90x30
3842 # 800x600 100x37 xnuppc-100x37
3843 # 896x600 112x37 xnuppc-112x37
3844 # 1024x640 128x40 xnuppc-128x40
3845 # 1024x768 128x48 xnuppc-128x48
3846 # 1152x768 144x48 xnuppc-144x48
3847 # 1280x1024 160x64 xnuppc-160x64
3848 # 1600x1024 200x64 xnuppc-200x64
3849 # 1600x1200 200x75 xnuppc-200x75
3850 # 2048x1536 256x96 xnuppc-256x96
3852 # The basic "xnuppc" entry includes no size information, and the
3853 # emulator includes no reporting capability, so you'll be at the mercy
3854 # of the TTY device (which reports incorrectly on my hardware.) The
3855 # color-bold entries do not include size information.
3857 # The '+' entries are building blocks
3858 xnuppc+basic|Darwin PowerPC console basic capabilities,
3859 am, bce, mir, xenl, NQ,
3861 bold=\E[1m, cr=\r, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
3862 dsl=\E]2;\007, el1=\E[1K, home=\E[H, ht=^I, hts=\EH, ind=\n,
3863 kbs=^?, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
3864 rev=\E[7m, ri=\EM, rmam=\E[?7l, rmkx=\E[?1l\E>,
3865 rs2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h,
3866 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
3867 sgr0=\E[m, smam=\E[?7h, smkx=\E[?1h\E=, tbc=\E[3g,
3868 use=ansi+csr, use=ansi+erase, use=ansi+local,
3869 use=ansi+sgrso, use=ansi+sgrul, use=vt100+keypad,
3871 xnuppc+c|Darwin PowerPC console ANSI color support,
3872 ncv#32, use=klone+color,
3874 xnuppc+b|Darwin PowerPC console color-bold support,
3877 sgr=\E[0%?%p6%t;35%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m,
3880 xnuppc+f|Darwin PowerPC console fancy color support,
3882 sgr=\E[0%?%p6%t;35%;%?%p2%t;36;4%;%?%p1%t;33;44%;%?%p3%t;7%;
3884 smso=\E[33;44m, smul=\E[36;4m, use=xnuppc+b,
3886 xnuppc+f2|Darwin PowerPC console alternate fancy color support,
3889 sgr=\E[0%?%p6%t;33%;%?%p2%t;34%;%?%p1%t;31;47%;%?%p3%t;7%;m,
3890 smso=\E[31;47m, smul=\E[34m, use=xnuppc+basic,
3892 # Building blocks for specific screen sizes
3893 xnuppc+80x25|Darwin PowerPC console 80x25 support (640x400 pixels),
3896 xnuppc+80x30|Darwin PowerPC console 80x30 support (640x480 pixels),
3899 xnuppc+90x30|Darwin PowerPC console 90x30 support (720x480 pixels),
3902 xnuppc+100x37|Darwin PowerPC console 100x37 support (800x600 pixels),
3905 xnuppc+112x37|Darwin PowerPC console 112x37 support (896x600 pixels),
3908 xnuppc+128x40|Darwin PowerPC console 128x40 support (1024x640 pixels),
3911 xnuppc+128x48|Darwin PowerPC console 128x48 support (1024x768 pixels),
3914 xnuppc+144x48|Darwin PowerPC console 144x48 support (1152x768 pixels),
3917 xnuppc+160x64|Darwin PowerPC console 160x64 support (1280x1024 pixels),
3920 xnuppc+200x64|Darwin PowerPC console 200x64 support (1600x1024 pixels),
3923 xnuppc+200x75|Darwin PowerPC console 200x75 support (1600x1200 pixels),
3926 xnuppc+256x96|Darwin PowerPC console 256x96 support (2048x1536 pixels),
3927 cols#0x100, lines#96,
3929 # These are different combinations of the building blocks
3931 xnuppc-m|darwin-m|Darwin PowerPC console (monochrome),
3934 xnuppc|darwin|Darwin PowerPC console (color),
3935 use=xnuppc+c, use=xnuppc+basic,
3937 xnuppc-m-b|darwin-m-b|Darwin PowerPC console (monochrome w/color-bold),
3940 xnuppc-b|darwin-b|Darwin PowerPC console (color w/color-bold),
3941 use=xnuppc+b, use=xnuppc+c,
3943 xnuppc-m-f|darwin-m-f|Darwin PowerPC console (fancy monochrome),
3946 xnuppc-f|darwin-f|Darwin PowerPC console (fancy color),
3947 use=xnuppc+f, use=xnuppc+c,
3949 xnuppc-m-f2|darwin-m-f2|Darwin PowerPC console (alternate fancy monochrome),
3952 xnuppc-f2|darwin-f2|Darwin PowerPC console (alternate fancy color),
3953 use=xnuppc+f2, use=xnuppc+c,
3955 # Combinations for specific screen sizes
3956 xnuppc-80x25-m|darwin-80x25-m|Darwin PowerPC console (monochrome) 80x25,
3957 use=xnuppc+80x25, use=xnuppc+basic,
3959 xnuppc-80x25|darwin-80x25|Darwin PowerPC console (color) 80x25,
3960 use=xnuppc+c, use=xnuppc+80x25, use=xnuppc+basic,
3962 xnuppc-80x30-m|darwin-80x30-m|Darwin PowerPC console (monochrome) 80x30,
3963 use=xnuppc+80x30, use=xnuppc+basic,
3965 xnuppc-80x30|darwin-80x30|Darwin PowerPC console (color) 80x30,
3966 use=xnuppc+c, use=xnuppc+80x30, use=xnuppc+basic,
3968 xnuppc-90x30-m|darwin-90x30-m|Darwin PowerPC console (monochrome) 90x30,
3969 use=xnuppc+90x30, use=xnuppc+basic,
3971 xnuppc-90x30|darwin-90x30|Darwin PowerPC console (color) 90x30,
3972 use=xnuppc+c, use=xnuppc+90x30, use=xnuppc+basic,
3974 xnuppc-100x37-m|darwin-100x37-m|Darwin PowerPC console (monochrome) 100x37,
3975 use=xnuppc+100x37, use=xnuppc+basic,
3977 xnuppc-100x37|darwin-100x37|Darwin PowerPC console (color) 100x37,
3978 use=xnuppc+c, use=xnuppc+100x37, use=xnuppc+basic,
3980 xnuppc-112x37-m|darwin-112x37-m|Darwin PowerPC console (monochrome) 112x37,
3981 use=xnuppc+112x37, use=xnuppc+basic,
3983 xnuppc-112x37|darwin-112x37|Darwin PowerPC console (color) 112x37,
3984 use=xnuppc+c, use=xnuppc+112x37, use=xnuppc+basic,
3986 xnuppc-128x40-m|darwin-128x40-m|Darwin PowerPC console (monochrome) 128x40,
3987 use=xnuppc+128x40, use=xnuppc+basic,
3989 xnuppc-128x40|darwin-128x40|Darwin PowerPC console (color) 128x40,
3990 use=xnuppc+c, use=xnuppc+128x40, use=xnuppc+basic,
3992 xnuppc-128x48-m|darwin-128x48-m|Darwin PowerPC console (monochrome) 128x48,
3993 use=xnuppc+128x48, use=xnuppc+basic,
3995 xnuppc-128x48|darwin-128x48|Darwin PowerPC console (color) 128x48,
3996 use=xnuppc+c, use=xnuppc+128x48, use=xnuppc+basic,
3998 xnuppc-144x48-m|darwin-144x48-m|Darwin PowerPC console (monochrome) 144x48,
3999 use=xnuppc+144x48, use=xnuppc+basic,
4001 xnuppc-144x48|darwin-144x48|Darwin PowerPC console (color) 144x48,
4002 use=xnuppc+c, use=xnuppc+144x48, use=xnuppc+basic,
4004 xnuppc-160x64-m|darwin-160x64-m|Darwin PowerPC console (monochrome) 160x64,
4005 use=xnuppc+160x64, use=xnuppc+basic,
4007 xnuppc-160x64|darwin-160x64|Darwin PowerPC console (color) 160x64,
4008 use=xnuppc+c, use=xnuppc+160x64, use=xnuppc+basic,
4010 xnuppc-200x64-m|darwin-200x64-m|Darwin PowerPC console (monochrome) 200x64,
4011 use=xnuppc+200x64, use=xnuppc+basic,
4013 xnuppc-200x64|darwin-200x64|Darwin PowerPC console (color) 200x64,
4014 use=xnuppc+c, use=xnuppc+200x64, use=xnuppc+basic,
4016 xnuppc-200x75-m|darwin-200x75-m|Darwin PowerPC console (monochrome) 200x75,
4017 use=xnuppc+200x75, use=xnuppc+basic,
4019 xnuppc-200x75|darwin-200x75|Darwin PowerPC console (color) 200x75,
4020 use=xnuppc+c, use=xnuppc+200x75, use=xnuppc+basic,
4022 xnuppc-256x96-m|darwin-256x96-m|Darwin PowerPC console (monochrome) 256x96,
4023 use=xnuppc+256x96, use=xnuppc+basic,
4025 xnuppc-256x96|darwin-256x96|Darwin PowerPC console (color) 256x96,
4026 use=xnuppc+c, use=xnuppc+256x96, use=xnuppc+basic,
4028 ######## DOS/WINDOWS
4029 # CRT is shareware. It implements some xterm features, including mouse.
4030 crt|crt-vt220|CRT 2.3 emulating VT220,
4032 ncv@, use=vt100+enq, use=vt220-base, use=ecma+color,
4034 # SecureCRT 8.7.3.2279
4035 # 8.7.3 was released 2020/08/11
4037 # VanDyke Software, Inc.
4039 # Advertised features:
4040 # Xterm 24-bit color
4042 # Double-size characters
4043 # Xterm extensions for mouse support and changing title bar
4044 # Emulates VT100, VT102, VT220, VT320, Linux console, SCO ANSI,
4045 # TN3270, TVI910, TVI925, Wyse 50/60, and ANSI.
4047 # Added ANSI sc/rc and REP in 2019/12/17
4048 # Added TVI910/ TVI925 in 2019/11/20
4051 # Emulate "Xterm", using "ANSI with 256color"
4052 # TERM=xterm-256color
4055 # DA1 \E[?62;1;2;6;7;8;9c (vt220 with DRCS and NRCS)
4057 # double-sized characters do not work
4058 # Menu-1 fails (window resizes to 132-columns, but does not repaint)
4059 # NRCS fails (tried French, but none of the replacements worked)
4060 # VT100 line-drawing works, except the C/R, etc., are an hline.
4061 # VT52 works except for S8C1T bug.
4062 # RIS hangs the terminal.
4063 # Local SRM does not echo.
4064 # Some of the VT320/VT220 status reports work, not locator or DECXCPR
4065 # DECUDK works if I press shift.
4066 # Fails CHT, CNL, CPL
4067 # Does not honor bce with ECH
4068 # ERM/SPA does not work
4069 # REP has 11 +'s except for final 2 +'s, like PuTTY.
4071 # DECRPM does not respond.
4072 # dtterm modify/report operations do not work
4073 # Alternate screen works.
4075 # highlight tracking does not work.
4076 # any event tracking does not work, but
4077 # button event tracking does work.
4078 # DEC locator does not work.
4079 # SGR coordinates does not work.
4081 # reset6 does reset to 80-columns
4082 # ncurses RGB edit does not work.
4083 # direct colors don't work, probably needs semicolons.
4085 # blink works, but not dim or invis
4086 # no italics or crossed-out
4088 # 256color handles "-r" option (but test/ncurses menu d does not alter)
4089 # dynamic colors queries do not work, though it seems some can be set.
4090 # resize.pl gets no reply, resize.sh needs fix for no reply.
4091 scrt|securecrt|SecureCRT emulating xterm-256color,
4093 bel@, cvvis@, kcbt=\E[Z, use=vt220+pcedit,
4094 use=xterm+256setaf, use=ecma+index, use=ansi+rep,
4095 use=xterm+keypad, use=xterm+pcfkeys, use=xterm-basic,
4099 # 11.24 was released 2020/08/13
4100 # Celestial Software
4102 # Advertised features:
4103 # Emacs compatibility mode (Meta Keys can be enabled for left/right ALT)
4104 # Double-size characters
4105 # Xterm extensions for mouse support
4106 # Emulates VT52, VT100, VT220, VT320, ansi, xterm, qnx, scoansi,
4107 # ANSIBBS, WYSE60, TeleVideo 950.
4113 # DA1: \E[?62;1;2;6;7;8;9;15;22c (VT200 with DRCS, UDK, NRCS)
4116 # + NRCS tests do not work
4117 # + DECUDK test fails
4118 # + VT100 double-sized characters work
4119 # menu-1 autowrap does not work
4120 # supports blinking text
4121 # VT220 DECSCA last screen (ignoring ECH, etc), leaves fill on top/left
4122 # VT220 device status reports fail, except operating status
4123 # 8-bit controls work
4124 # xterm alternate screen recognized, but cursor restored incorrectly
4125 # xterm mouse (normal, any event, button event) works
4126 # xterm highlight-mouse does not work properly, confused with any-event
4127 # does not recognize SGR-mouse mode
4128 # supports xterm window-modifiny/reporting controls
4129 # supports ECMA-48 cursor movement except HPR
4130 # supports REP and SD, but not ECMA-48 SL, SR, SU
4132 # italics and crossed-out do not work
4133 # supports xterm-style modified function-keys, using X11R6 F1-F4.
4134 # does not support modified cursor-keys or editing-keys
4135 # uses VT220-style Home/End
4136 # if alt-keys are enabled,
4137 # meta-mode sends escape rather than shifting, in 7-bit mode
4138 # meta-mode does the expected shifting in 8-bit mode
4140 # supports 256-colors, including changing palette (ncurses menu d works)
4141 # supports UTF-8, but honors VT100 line-drawing
4142 absolute|Absolute Telnet emulating xterm,
4143 kcbt=\E[Z, use=ecma+index, use=linux+kbs, use=ansi+rep,
4144 use=vt220+pcedit, use=xterm+keypad, use=xterm+app,
4145 use=xterm+pcf0, use=xterm+256color, use=xterm+x11mouse,
4149 # http://www.chiark.greenend.org.uk/~sgtatham/putty/
4151 # PuTTY 0.78 (September 2020, tested 12 August 2023)
4152 # Testing with tack:
4153 # implements cross-out text (shortly after 0.74)
4154 # restore kLFT as kLFT5, etc. (mentioned in October 2021)
4155 # does not support direct-colors (mentioned in July 2021)
4157 # PuTTY 0.74 (27 June 2020)
4160 # PuTTY 0.73 (September 2019)
4161 # Testing with tack:
4162 # does not implement italics
4163 # does not implement cross-out text
4164 # its settings dialog allows some of the VT100 line-drawing tests to pass
4165 # (not the padding test, though)
4166 # Testing with vttest:
4167 # xterm mouse modes are incomplete: X10, highlight, any-event, and focus in/out modes are not implemented.
4168 # does not implement protected areas
4169 # does not implement SL/SR
4171 # PuTTY 0.71 (March 2019) provided a workable "rep" capability. It also
4172 # changed longstanding keypad assignments, so that these no longer apply:
4173 # kLFT=\E[D, kRIT=\E[C, kb2=\E[G,
4175 # PuTTY recognized xterm's 1006 mouse mode in late 2015; subsequent release was
4176 # in 2017 (0.70) -TD
4178 # Comparing with 0.51, vttest is much better (only a few problems with the
4179 # cursor position reports and wrapping).
4181 # PuTTY 0.51 (14 December 2000)
4183 # This emulates VT100 + VT52 (plus a few VT220 features: ech, SRM, DECTCEM, as
4184 # well as SCO and Atari, color palettes from Linux console). Reading the code,
4185 # it is intended to be VT102 plus selected features. By default, it sets $TERM
4186 # to xterm, which is incorrect, since several features are misimplemented:
4188 # Alt+key always sends ESC+key, so 'km' capability is removed.
4190 # Control responses, wrapping and tabs are buggy, failing a couple of
4191 # screens in vttest.
4193 # xterm mouse support is not implemented (unreleased version may).
4195 # Several features such as backspace/delete are optional; this entry documents
4196 # the default behavior. None of the combinations of keyboard settings match
4197 # those used for xterm -TD
4199 # PuTTY recognizes xterm's 1049 mode for switching to/from alternate screen,
4200 # but implements it incorrectly as mentioned here:
4201 # http://stackoverflow.com/questions/24613237/terminal-retains-bg-color-after-closing-vim-using-color-scheme-and-putty-256co/37869114#37869114
4202 putty|PuTTY terminal emulator,
4203 am, bce, bw, ccc, mir, msgr, xenl, xon, XT,
4205 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4206 bel=^G, cr=\r, cub1=^H, cud1=\ED, cup=\E[%i%p1%d;%p2%dH,
4207 cuu1=\EM, dch=\E[%p1%dP, dch1=\E[P,
4208 dispc=%?%p1%{8}%=%t\E%%G\342\227\230\E%%@%e%p1%{10}%=%t\E%%G
4209 \342\227\231\E%%@%e%p1%{12}%=%t\E%%G\342\231\0\E%%@%e
4210 %p1%{13}%=%t\E%%G\342\231\252\E%%@%e%p1%{14}%=%t\E%%G
4211 \342\231\253\E%%@%e%p1%{15}%=%t\E%%G\342\230\274\E%%@
4212 %e%p1%{27}%=%t\E%%G\342\206\220\E%%@%e%p1%{155}%=%t\E
4213 %%G\340\202\242\E%%@%e%p1%c%;,
4214 ech=\E[%p1%dX, el1=\E[1K, enacs=\E(B\E)0,
4215 flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
4217 initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/
4218 %02x%p4%{255}%*%{1000}%/%02x,
4219 is2=\E7\E[r\E[m\E[?7h\E[?1;4;6l\E[4l\E8\E>\E]R,
4220 kbs=^?, kcbt=\E[Z, khome=\E[1~, kind=\E[B, kri=\E[A, kspd=^Z,
4221 nel=\r\n, oc=\E]R, op=\E[39;49m, ri=\EM, rmacs=^O,
4222 rmam=\E[?7l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[27m,
4224 rs2=\E<\E["p\E[50;6"p\Ec\E[?3l\E]R\E[?1000l,
4225 s0ds=\E[10m, s1ds=\E[11m, s2ds=\E[12m,
4226 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5
4227 %;m%?%p9%t\016%e\017%;,
4228 sgr0=\E[m\017, smacs=^N, smam=\E[?7h, smir=\E[4h,
4229 smkx=\E[?1h\E=, vpa=\E[%i%p1%dd, E3=\E[3J,
4230 use=ansi+apparrows, use=ansi+csr, use=ansi+erase,
4231 use=ansi+idl, use=ansi+local, use=ansi+tabs,
4232 use=ansi+rep, use=bracketed+paste, use=ecma+index,
4233 use=ecma+strikeout, use=klone+color, use=klone+sgr,
4234 use=putty+cursor, use=putty+fnkeys, use=vt220+pcedit,
4235 use=xterm+alt1049, use=vt102+enq, use=xterm+sm+1006,
4236 use=xterm+sl, use=vt100+fnkeys, use=putty+keypad,
4239 # older versions (e.g., before 0.71) of PuTTY used a shift-modifier to toggle
4240 # between normal- and application-mode for the cursor-keys. That was dropped,
4241 # and a few years later (after 0.74) restored as the control-modifier.
4242 putty+cursor|PuTTY modified cursor-keys,
4243 kDN5=\E[B, kLFT5=\E[D, kRIT5=\E[C, kUP5=\E[A,
4244 putty+keypad|PuTTY numeric keypad,
4245 kp1=\EOq, kp2=\EOr, kp3=\EOs, kp4=\EOt, kp5=\EOu, kp6=\EOv,
4246 kp7=\EOw, kp8=\EOx, kp9=\EOy, kpADD=\EOl, kpDIV=\EOQ,
4247 kpDOT=\EOn, kpMUL=\EOR, kpNUM=\EOP, kpSUB=\EOS, kpZRO=\EOp,
4249 vt100-putty|Reset PuTTY to pure VT100,
4250 rs2=\E<\E["p\Ec\E[?3l\E]R\E[40"p\E[61"p\E[50;1;2"p,
4252 putty-256color|PuTTY 0.58 with xterm 256-colors,
4253 use=xterm+256setaf, use=putty,
4254 putty-noapp|putty with cursor keys in normal mode,
4255 kLFT=\EOD, kRIT=\EOC, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C,
4256 kcuu1=\E[A, kind=\EOB, kri=\EOA, rmkx=\E>, smkx=\E=,
4259 # One of the keyboard selections is "VT100+".
4260 # pterm (the X11 port) uses shifted F1-F10 as F11-F20
4261 putty-vt100|VT100+ keyboard layout,
4262 use=putty+fnkeys+vt100, use=putty,
4264 putty-sco|putty with SCO function keys,
4265 use=putty+fnkeys+sco, use=putty,
4267 # PuTTY has more than one section in its Keyboard configuration:
4268 # a) backspace/delete, which we ignore since that choice largely depends on
4269 # whether one matches Unix and BSD or Linux.
4270 # b) home/end keys, also ignored because the "rxvt" setting sends keys which
4271 # are unrelated to rxvt's actual settings.
4272 # c) function keys and keypad - this is the interesting part. None of the
4273 # selections match any of their respective namesakes, but they are shown
4274 # here to help users who expect that the selections do what is implied.
4276 # This is the default setting for PuTTY
4277 putty+fnkeys|fn-keys for PuTTY,
4278 use=putty+fnkeys+esc,
4280 putty+fnkeys+esc|ESC[n~ fn-keys for PuTTY,
4281 kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
4282 kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, kf16=\E[29~,
4283 kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf2=\E[12~,
4284 kf20=\E[34~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
4285 kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
4287 putty+fnkeys+linux|Linux fn-keys for PuTTY,
4288 kf1=\E[[A, kf2=\E[[B, kf3=\E[[C, kf4=\E[[D, kf5=\E[[E,
4289 use=putty+fnkeys+esc,
4291 putty+fnkeys+xterm|Xterm R6 fn-keys for PuTTY,
4292 kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
4293 use=putty+fnkeys+esc,
4295 putty+fnkeys+vt400|VT400 fn-keys for PuTTY,
4296 use=putty+fnkeys+esc,
4298 # Shifted F1 is F11. F13-F20 inherit from the defaults, and the last distinct
4300 putty+fnkeys+vt100|VT100+ fn-keys for PuTTY,
4301 kf1=\EOP, kf10=\EOY, kf11=\EOZ, kf12=\EO[, kf2=\EOQ,
4302 kf3=\EOR, kf4=\EOS, kf5=\EOT, kf6=\EOU, kf7=\EOV, kf8=\EOW,
4303 kf9=\EOX, use=putty+fnkeys+esc,
4305 # Unlike xterm-sco, this leaves kmous ambiguous with kf1.
4307 # Use modifiers to obtain function keys past 12:
4310 # F25-F36 - control/alt
4311 # F37-F48 - control/shift
4313 putty+fnkeys+sco|SCO fn-keys for PuTTY,
4314 kbeg=\E[E, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
4315 kdch1=^?, kend=\E[F, kf1=\E[M, kf10=\E[V, kf11=\E[W,
4316 kf12=\E[X, kf13=\E[Y, kf14=\E[Z, kf15=\E[a, kf16=\E[b,
4317 kf17=\E[c, kf18=\E[d, kf19=\E[e, kf2=\E[N, kf20=\E[f,
4318 kf21=\E[g, kf22=\E[h, kf23=\E[i, kf24=\E[j, kf25=\E[k,
4319 kf26=\E[l, kf27=\E[m, kf28=\E[n, kf29=\E[o, kf3=\E[O,
4320 kf30=\E[p, kf31=\E[q, kf32=\E[r, kf33=\E[s, kf34=\E[t,
4321 kf35=\E[u, kf36=\E[v, kf37=\E[w, kf38=\E[x, kf39=\E[y,
4322 kf4=\E[P, kf40=\E[z, kf41=\E[@, kf42=\E[[, kf43=\E[\\,
4323 kf44=\E[], kf45=\E[\^, kf46=\E[_, kf47=\E[`, kf48=\E[{,
4324 kf5=\E[Q, kf6=\E[R, kf7=\E[S, kf8=\E[T, kf9=\E[U, khome=\E[H,
4325 kich1=\E[L, knp=\E[G, kpp=\E[I,
4328 # https://github.com/mintty/mintty
4330 # Originally a fork (and reduction) of PuTTY, this has grown from 15ksloc in
4331 # 2013 to 41ksloc in 2020. That is still smaller than PuTTY (160ksloc), but
4332 # larger than rxvt (31ksloc) and slightly smaller than rxvt-unicode (42ksloc).
4334 # Version 3.0 responds to DA as a VT400, however it does not implement the
4335 # application keypad. The assignment of cursor-keys versus modifiers differs
4336 # from xterm (alt-left and alt-right send modifier 7, i.e., alt+control).
4338 # Thomas Wolff suggested these extensions:
4339 # blink2 turn on rapid blinking
4340 # blink0 turn off blinking
4341 # norm turn off bold and half-bright mode
4342 # opaq turn off blank mode
4343 # smul2 begin double underline mode
4344 # smol begin overline mode
4345 # rmol exit overline mode
4346 # Font0 use default font
4347 # Font1 use alternative font 1
4349 # Font10 use alternative font 10
4350 # setal set (under)line color
4351 # ol set default (under)line color
4352 # overs overstrike (print characters over each other)
4354 # but see vte-2018 (use Smol/Rmol rather than smol/rmol).
4355 mintty|Cygwin Terminal,
4356 setal=\E[5%p1%dm, use=xterm+256color,
4358 mintty-direct|Cygwin Terminal direct-color,
4359 use=kitty+setal, use=xterm+direct, use=mintty+common,
4360 mintty+common|shared capabilities for mintty,
4362 kcbt=\E[Z, kent=\EOM, rmm@, rmpch=\E[10m,
4363 rs1=\Ec\E]104\007, rshm=\E[22m, rsubm=\E[75m,
4364 rsupm=\E[75m, smm@, smpch=\E[11m, sshm=\E[1:2m,
4365 ssubm=\E[74m, ssupm=\E[73m, Rmol=\E[55m, Smol=\E[53m,
4366 Smulx=\E[4:%p1%dm, blink2=\E[6m, norm=\E[22m,
4367 opaq=\E[28m, smul2=\E[21m, use=linux+kbs, use=ansi+rep,
4368 use=ecma+strikeout, use=ecma+index, use=vt420+lrmm,
4369 use=xterm+focus, use=xterm+sm+1006, use=xterm+pcfkeys,
4370 use=xterm+tmux, use=ecma+italics, use=xterm-basic,
4371 use=bracketed+paste, use=report+version,
4372 # 2019-06-09: These capabilities are commented-out for compatibility with
4373 # existing releases 5.9-6.1, and may be considered for inclusion after the
4374 # release of ncurses 6.2:
4392 # This entry is for Tera Term Pro version 2.3, for MS-Windows 95/NT written by
4393 # T. Teranishi dated Mar 10, 1998. It is a free software terminal emulator
4394 # (communication program) which supports:
4396 # - Serial port connections.
4397 # - TCP/IP (telnet) connections.
4398 # - VT100 emulation, and selected VT200/300 emulation.
4399 # - TEK4010 emulation.
4400 # - File transfer protocols (Kermit, XMODEM, ZMODEM, B-PLUS and
4402 # - Scripts using the "Tera Term Language".
4403 # - Japanese and Russian character sets.
4405 # The program does not come with terminfo or termcap entries. However, the
4406 # emulation (testing with vttest and ncurses) is reasonably close to VT100 (no
4407 # VT52 or doublesize character support; blinking is done with color). Besides
4408 # the HPA, VPA extensions it also implements CPL and CNL.
4410 # All of the function keys can be remapped. This description shows the default
4411 # mapping, as installed. Both VT100 PF1-PF4 keys and quasi-vt220 F1-F4 keys
4412 # are supported. F13-F20 are obtained by shifting F3-F10. The editing keypad
4413 # is laid out like VT220, rather than the face codes on the PC keyboard, i.e,
4421 # ANSI colors are implemented, but cannot be combined with video attributes
4422 # except for reverse.
4424 # No fonts are supplied with the program, so the acsc string is chosen to
4425 # correspond with the default Microsoft terminal font.
4427 # Tera Term recognizes some xterm sequences, including those for setting and
4428 # retrieving the window title, and for setting the window size (i.e., using
4429 # "resize -s"), though it does not pass SIGWINCH to the application if the
4430 # user resizes the window with the mouse.
4431 teraterm2.3|Tera Term Pro 2.3,
4434 acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
4435 \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
4436 \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
4437 blink=\E[5m, bold=\E[1m, clear=\E[H\E[J, cuf1=\E[C,
4438 cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
4439 dch1=\E[P, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
4440 flash=\E[?5h$<200/>\E[?5l, hpa=\E[%i%p1%dG, kf1=\E[11~,
4441 kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
4442 kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
4443 kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
4444 kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
4445 kf8=\E[19~, kf9=\E[20~, op=\E[100m, rev=\E[7m, ri=\EM,
4446 rmso=\E[27m, rmul=\E[24m, sgr0=\E[0m\017, smso=\E[7m,
4447 smul=\E[4m, vpa=\E[%i%p1%dd, use=ansi+idl,
4448 use=vt220+vtedit, use=vt100+enq, use=klone+color,
4449 use=vt100, use=vt220+cvis,
4451 # Version 4.59 has regular VT100 line-drawing (so it is no longer necessary
4452 # to choose a Windows OEM font).
4454 # Testing with tack:
4455 # - it does not have xenl (suppress that)
4456 # - underline seems to work with color (modify ncv).
4457 # Testing with vttest:
4458 # - wrapping differs from VT100 (menu 1).
4459 # - it recognizes xterm's X10 and normal mouse tracking, but none of the
4461 # - it recognizes the dtterm window controls for reporting size in
4462 # characters and pixels.
4463 # - it passes SIGWINCH.
4464 teraterm4.59|Tera Term Pro 4.59,
4467 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4468 kmous=\E[M, use=teraterm2.3,
4472 # Testing with tack:
4473 # - no bell (flash works)
4474 # - bold is yellow, blink is red.
4475 # - default keyboard sends ^? for Delete, can be configured for kdch1
4477 # Testing with vttest:
4478 # + autowrap has problems...
4479 # + color-tests for bce feature match xterm's behavior
4480 # + handles most of xterm's mouse-controls other than highlight-tracking.
4481 # xterm's SGR 1006 works.
4482 # + partial support for DEC locator-events
4483 # + implements ECMA-48 SD/SU, but not REP, SL/SR.
4484 # + has a "Tek" window, but does not work with vttest's examples
4485 # + supports the dtterm window modify/report controls
4486 # + responds to DECRQM and DECRQSS controls, but not consistent with DSR
4488 # + VT220 screen-display tests are ok
4491 # + recognizes xterm's original direct-colors sequences, but result is
4493 # + no UTF-8 apparent when UTF-8 is set, with font Lucida Control
4494 teraterm4.97|Tera Term Pro 4.97,
4495 XT, use=ecma+color, use=xterm+sm+1006, use=teraterm4.59,
4496 teraterm-256color|TeraTerm with xterm 256-colors,
4497 use=xterm+256setaf, use=teraterm,
4504 # Tested with WinNT 4.0, the telnet application assumes the screensize is
4505 # 25x80. This entry uses the 'Terminal' font, to get line-drawing characters.
4508 # a) Fails tack's cup (cursor-addressing) test, though cup works well enough
4509 # for casual (occasional) use. Also fails several of the vttest screens,
4510 # but that is not unusual for VT100 "emulators".
4511 # b) Does not implement VT100 keypad
4512 # c) Recognizes a subset of VT52 controls.
4513 ms-vt100|MS telnet imitating DEC VT100,
4515 acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i
4516 \316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u
4517 \264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
4518 ka1@, ka3@, kb2@, kc1@, kc3@, kent@, kf0@, kf1@, kf10@, kf2@, kf3@, kf4@,
4519 kf5@, kf6@, kf7@, kf8@, kf9@, tbc@, use=vt102+enq, use=vt100,
4521 # Tested with Windows 2000, the telnet application runs in a console window,
4522 # also using 'Terminal' font.
4525 # a) This version has no function keys or numeric keypad. Unlike the older
4526 # version, the numeric keypad is entirely ignored.
4527 # b) The program sets $TERM to "ansi", which of course is inaccurate.
4528 ms-vt100-color|vtnt|windows 2000 ANSI (sic),
4530 dch=\E[%p1%dP, ich=\E[%p1%d@, use=ecma+color,
4533 # Based on comments from Federico Bianchi:
4535 # vt100+ is basically a VT102-noSGR with ANSI.SYS colors and a different
4536 # scheme for PF keys.
4538 # and PuTTY wishlist:
4540 # The modifiers are represented as the codes listed above, prefixed to
4541 # the normal sequences. If the modifier is pressed alone, its sequence
4542 # is transmitted twice in succession. If multiple modifiers apply,
4543 # they're transmitted in the order shift, control, alt.
4548 ms-vt100+|vt100+|windows XP VT100+ (sic),
4549 kdch1=\E-, kend=\Ek, kf1=\E1, kf10=\E0, kf11=\E!, kf12=\E@,
4550 kf13=\E\023\E1, kf14=\E\023\E2, kf15=\E\023\E3,
4551 kf16=\E\023\E4, kf17=\E\023\E5, kf18=\E\023\E6,
4552 kf19=\E\023\E7, kf2=\E2, kf20=\E\023\E8, kf21=\E\023\E9,
4553 kf22=\E\023\E0, kf23=\E\023\E!, kf24=\E\023\E@,
4554 kf25=\E\003\E1, kf26=\E\003\E2, kf27=\E\003\E3,
4555 kf28=\E\003\E4, kf29=\E\003\E5, kf3=\E3, kf30=\E\003\E6,
4556 kf31=\E\003\E7, kf32=\E\003\E8, kf33=\E\003\E9,
4557 kf34=\E\003\E0, kf35=\E\003\E!, kf36=\E\003\E@,
4558 kf37=\E\001\E1, kf38=\E\001\E2, kf39=\E\001\E3, kf4=\E4,
4559 kf40=\E\001\E4, kf41=\E\001\E5, kf42=\E\001\E6,
4560 kf43=\E\001\E7, kf44=\E\001\E8, kf45=\E\001\E9,
4561 kf46=\E\001\E0, kf47=\E\001\E!, kf48=\E\001\E@, kf5=\E5,
4562 kf6=\E6, kf7=\E7, kf8=\E8, kf9=\E9, khome=\Eh, kich1=\E+,
4563 knp=\E/, kpp=\E?, use=ms-vt100-color,
4565 ms-vt-utf8|vt-utf8|UTF-8 flavor of VT100+,
4568 # VT-UTF-8 and VT100+ Protocols
4569 # https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-vuvp/969416c0-ccd6-4a75-a9b3-597d7713845b
4571 # This Microsoft "protocol" adapted the aixterm 16-color feature from xterm's
4572 # documentation in 2015, as seen in successive revisions:
4574 # 2013/07/22 has 8 colors
4575 # 2015/10/16 has 16 colors using SGR 90-97, 100-107 as well as SGR 24 and 27,
4576 # adds "informative" reference to xterm's ctlseqs
4578 # The cnorm/civis definitions added in 2015 are unrelated to any standard.
4579 ms-vt100-16color|VT-UTF-8 and VT100+,
4580 civis=\E[?h, cnorm=\E[?l, rmso=\E[27m, rmul=\E[24m,
4581 use=ibm+16color, use=ms-vt100+,
4584 # https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences
4585 # We use this scheme to map function keys
4586 # terminfo modifier code keys
4587 # kf13-kf24 shift 2 F1 to F12
4588 # kf25-kf36 alt 3 F1 to F12
4589 # kf37-kf48 control 4 F1 to F12
4590 # kf49-kf60 ctrl-alt 7 F1 to F12
4592 # Unclear: smam and rmam implemented?
4593 # Unclear: rmkx, smkx, rmir, smir - irrelevant?
4596 # + According to tack, tbc and cbt fail.
4597 # + The line-drawing (acsc) does not work in telnet or ssh. I added the
4598 # U8 extension to tell ncurses to use UTF-8 for line-drawing (when the
4599 # locale uses UTF-8). That won't work for telnet (which uses ASCII),
4600 # but seems to work for OpenSSH's ssh. I set the codepage to 65001,
4602 # + Function keys... do not work consistently in telnet and ssh. With
4603 # telnet, kf1-kf4 are \EOP to \EOS, and kf5-kf12 match the terminfo.
4604 # But with ssh, it's entirely different (reminds me of rxvt).
4605 winconsole|Windows 10 new console,
4606 am, km, mir, msgr, xenl,
4608 acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxy
4610 bel=^G, blink@, cr=\r, ech=\E[%p1%dX, el1=\E[0K, ich1@, ind=\n,
4611 invis@, is1=\E[!p, kf13=\E[11;2~, kf14=\E[12;2~,
4612 kf15=\E[13;2~, kf16=\E[14;2~, kf17=\E[15;2~,
4613 kf18=\E[17;2~, kf19=\E[18;2~, kf20=\E[19;2~,
4614 kf21=\E[20;2~, kf22=\E[21;2~, kf23=\E[24;2~,
4615 kf24=\E[25;2~, kf25=\E[11;3~, kf26=\E[12;3~,
4616 kf27=\E[13;3~, kf28=\E[14;3~, kf29=\E[15;3~,
4617 kf30=\E[17;3~, kf31=\E[18;3~, kf32=\E[19;3~,
4618 kf33=\E[20;3~, kf34=\E[21;3~, kf35=\E[24;3~,
4619 kf36=\E[25;3~, kf37=\E[11;4~, kf38=\E[12;4~,
4620 kf39=\E[13;4~, kf40=\E[14;4~, kf41=\E[15;4~,
4621 kf42=\E[17;4~, kf43=\E[18;4~, kf44=\E[19;4~,
4622 kf45=\E[20;4~, kf46=\E[21;4~, kf47=\E[24;4~,
4623 kf48=\E[25;4~, kf49=\E[11;7~, kf50=\E[12;7~,
4624 kf51=\E[13;7~, kf52=\E[14;7~, kf53=\E[15;7~,
4625 kf54=\E[17;7~, kf55=\E[18;7~, kf56=\E[19;7~,
4626 kf57=\E[20;7~, kf58=\E[21;7~, kf59=\E[24;7~,
4627 kf60=\E[25;7~, khome=\E[1~, nel=\r\n, ri=\E[T, rmacs=\E(B,
4628 rmir@, rmpch@, rs1=\E[!p,
4629 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;m%?%p9%t
4631 sgr0=\E[0m\E(B, smacs=\E(0, smir@, smpch@, use=ansi+arrows,
4632 use=ansi+csr, use=ansi+cup, use=ansi+erase, use=ansi+idc,
4633 use=ansi+idl, use=ecma+index, use=ansi+inittabs,
4634 use=ansi+local, use=ecma+sgr, use=ecma+color,
4635 use=vt220+cvis, use=vt220+pcedit, use=xterm+nopcfkeys,
4637 # Windows Terminal (Preview)
4638 # https://github.com/microsoft/terminal
4640 # Windows 10 22H2 (also Windows 11)
4641 # Version 1.16.10261.0
4643 # - Windows Terminal #1553: "Feature Request: Mouse/Touch/Pointer Bindings
4644 # (like middle-click paste, right-click context menu, etc.)", compare to
4645 # https://learn.microsoft.com/en-us/windows/console/mouse-event-record-str
4646 # This appears to be related to a problem with its implementation of the
4647 # Console API; the mouse does not work in a "Command Window" (e.g., as used
4648 # in the ncurses MinGW driver), although escape sequences work.
4651 # Version 1.9.1942.0
4653 # This has longstanding issues with CR/LF mapping, e.g.,
4654 # - first reported by Juergen Pfeifer August 13, 2020, with workaround
4655 # - Windows Terminal #8303 "Updates to ms-terminal terminal type in terminfo to
4657 # - Windows Terminal #6733 "Midnight Commander (mc) output is screwed when
4658 # using the 'ms-terminal' as $TERM"
4660 # still seen in testing during May-July 2021. As a workaround, this terminal
4661 # description sets cud1 to an escape sequence rather than just \r.
4663 # Using TERM=xterm-256color shows a number of problems.
4664 # A few are seen only in the WSL2 environment.
4667 # - flash does not work.
4668 # - video attribute blink does not work.
4669 # - video attribute invis does not work in WSL2.
4670 # - italics sitm/ritm do not work in WSL2.
4671 # - crossed-out smxx/rmxx do not work in WSL2.
4672 # - reloading colors via initp interchanges red/blue.
4673 # - does not implement OSC 104, which is used for resetting colors in xterm.
4674 # - does not support numeric keypad application mode.
4675 # - control-modifier (without alt/shift) does not work for special keys.
4676 # - meta-key sends escape character rather than acting as a meta key.
4679 # - identifies itself as a VT100.
4680 # - cursor movement (menu 1) does not work properly, e.g., for wrapping.
4681 # - does not support 8-bit controls.
4682 # - does not support VT420 rectangles.
4683 # - does not support VT420 left/right margins.
4684 # - ECMA-48 cursor-movement works.
4685 # - does not support X10 mouse, or mouse highlight tracking.
4686 # - SGR mouse mode 1006 works.
4687 # - any-event mouse mode shows no focus-in/focus-out events.
4688 # - alternate screen 47/48 modes do not work, nor do 1047/1048.
4689 # - alternate screen 1049 mode works.
4690 # - none of the window report/modify operations work.
4691 # - none of the DECRPM/DECRQM reporting operations work.
4694 # - 256colors2.pl -r, -i and -q options work.
4695 # - dynamic colors do not work.
4696 # - paste64.pl does not work, i.e., bracketed-paste.
4697 # - tcapquery.pl does not work.
4700 # Version 0.2.1831.0
4702 # The task manager shows this as "OpenConsole.exe", which differs
4703 # from the "Windows Command Processor" used for the command-prompt.
4705 # The settings dialog does not work (unless the end user expects to open
4706 # profiles.json in Visual Studio). There is no documentation, of course.
4708 # Testing via an ssh connection, using openssh:
4709 # - the program sets TERM to cygwin if the tab is set to PowerShell,
4710 # and to xterm-256color if "Legacy". However, in the latter, more tests
4711 # fail in vttest, which does not pay attention to TERM.
4713 # - menu 1 (tests for cursor movement) misbehaves like command-prompt
4714 # - primary DA says this is a vanilla VT100
4715 # - does not flush response to primary DA, leaving a ^M on the end when
4716 # the PowerShell tab is used. Both the "Legacy" tab and the command-prompt
4717 # work properly in this test.
4718 # - in the generic VT100 tests, there are problems with character sets
4719 # (diamond shows as a double-width character, DEL as two replacement-chars).
4720 # - outside of the generic VT100 tests, the program does poorly because most
4721 # of the features are missing.
4722 # - ECH does not work properly
4723 # - a few generic xterm features are supported (set window title), but
4724 # others are missing (such as the mouse).
4725 # - the cursor visible/invisible works in the PowerShell tab, not in "Legacy"
4727 # - blink, dim, bold, invis, protect do not work
4728 # - bce works (but per vttest, with ED, EL, not ECH)
4729 # - does not support keypad application mode
4730 # - implements most of the xterm modified keys; sometimes modifiers are ignored
4731 # or simply incorrect
4732 # - sends escape+key rather than implementing meta mode
4734 # - color palette can be altered, but OSC 104 for resetting does not work
4735 # - crashed with a script used for testing NRCS.
4736 # - does not recognize either xterm+direct or xterm+indirect escapes.
4737 ms-terminal|Windows10 terminal,
4739 cud1=\E[B, kcbt=\E[Z, rmkx=\E[?1l, rmm@, smkx=\E[?1h, smm@,
4740 Cr@, Ms@, use=linux+kbs, use=xterm+256color,
4741 use=xterm+pcfkeys, use=ansi+rep, use=xterm+sm+1006,
4742 use=ecma+index, use=ecma+italics, use=ecma+strikeout,
4743 use=xterm-basic, use=xterm+tmux,
4746 # Visual Studio Code 1.45.0 uses xterm.js 12.8.1 (see https://xtermjs.org/).
4749 # - fixes menu 1 problem with wrapping
4751 # - fixes menu 8 problem with delete-character
4753 # - keypad application mode still does not work; PF1-PF4 are not assigned.
4754 # - DECRQM/DECRPM do not work
4755 # - xterm mouse features:
4756 # - SGR coordinates work; the other modes do not (see vscode #96058)
4757 # - focus-events are not sent
4758 # - mouse highlight tracking does not send button event
4760 # - little or no change since previous review
4762 # Visual Studio Code 1.35.1 uses xterm.js (see https://xtermjs.org/).
4763 # https://code.visualstudio.com/docs/editor/integrated-terminal
4765 # This sets TERM to xterm-256color, which is a little more successful than
4769 # - menu 1 (cursor movement) has problems with wrapping
4770 # - claims to be a VT100 with AVO, but copies xterm #276's secondary response
4771 # - menu 8 (insert/delete char/line) has problem with delete-character
4772 # - like Windows Terminal, fails the ECH test: neither supports DECALN
4773 # However, the bce test with ECH works.
4774 # - does not support keypad application mode
4775 # - supports most xterm mode controls (except DEC Locator Events)
4776 # - REP, SL/SL do not work, but SD/SU work.
4777 # - the alternate-screen tests fail because it does not support DECALN
4778 # - window modify/report is not supported
4779 # - supports some VT320 presentation reports
4781 # - does not support blinking text
4782 # - implements most of the xterm modified keys, with some exceptions:
4783 # - pageup/pagedown do not send escapes
4784 # - alt cursor left/right send escape-b and escape-f
4785 # - sends UTF-8 like xterm for meta mode
4787 # - mouse mode is not reset by reset-sequence
4788 # - supports italics and dim, but not cross-out or double-underline
4789 # - color-palette cannot be changed
4790 vscode|xterm.js|Visual Studio Code terminal using xterm.js,
4792 kcbt=\E[Z, rmkx=\E[?1l, smkx=\E[?1h, use=linux+kbs,
4793 use=xterm+256setaf, use=ecma+index, use=xterm+focus,
4794 use=xterm+sm+1006, use=xterm+pcfkeys, use=ecma+italics,
4795 use=xterm-basic, use=bracketed+paste,
4796 vscode-direct|Visual Studio Code with direct-colors,
4797 use=xterm+indirect, use=vscode,
4799 ######## X TERMINAL EMULATORS
4802 # You can add the following line to your .Xdefaults to change the terminal type
4803 # set by the xterms you start up to my-xterm:
4805 # *termName: my-xterm
4807 # System administrators can change the default entry for xterm instances
4808 # by adding a similar line to /usr/X11/lib/X11/app-defaults/XTerm. In either
4809 # case, xterm will detect and reject an invalid terminal type, falling back
4810 # to the default of xterm.
4813 # X10/6.6 11/7/86, minus alternate screen, plus (csr)
4814 # (xterm: ":MT:" changed to ":km:"; added <smam>/<rmam> based on init string;
4815 # removed (hs, eslok, tsl=\E[?E\E[?%i%dT, fsl=\E[?F, dsl=\E[?E)
4816 # as these seem not to work -- esr)
4817 x10term|vs100-x10|xterm terminal emulator (X10 window system),
4818 OTbs, am, km, mir, msgr, xenl, xon,
4819 cols#80, it#8, lines#65,
4820 bold=\E[1m, clear=\E[H\E[2J, csr=\E[%i%p1%d;%p2%dr,
4821 cub1=^H, cud1=\n, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
4822 cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, ed=\E[J, el=\E[K,
4823 home=\E[H, ht=^I, ind=\n, is2=\E\E[m\E[?7h\E[?1;4l, kbs=^H,
4824 kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\EOP,
4825 kf2=\EOQ, kf3=\EOR, kf4=\EOS, rev=\E[7m, ri=\EM, rmam=\E[?7l,
4826 rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[m, rmul=\E[m,
4827 sgr0=\E[m, smam=\E[?7h, smir=\E[4h, smkx=\E[?1h\E=,
4828 smso=\E[7m, smul=\E[4m, use=ansi+idl,
4830 # csl is extension which clears the status line
4831 x10term+sl|status-line for X10 xterm,
4833 dsl=\E[?H, fsl=\E[?F, tsl=\E[?E\E[?%i%p1%dT, csl=\E[?E,
4835 # Compatible with the R5 xterm
4836 # (from the XFree86 3.2 distribution, <blink=@> removed)
4837 # added khome/kend, rmir/smir, rmul/smul, hts based on the R5 xterm code - TD
4838 # corrected typos in rs2 string - TD
4840 xterm-r5|xterm R5 version,
4841 OTbs, am, km, msgr, xenl,
4842 cols#80, it#8, lines#24,
4843 bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
4844 cup=\E[%i%p1%d;%p2%dH, ed=\E[J, el=\E[K, home=\E[H, ht=^I,
4845 hts=\EH, ind=\n, kdl1=\E[31~, kel=\E[8~, kf0=\EOq,
4846 kf1=\E[11~, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~,
4847 kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~,
4848 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khome=\E[1~,
4849 kil1=\E[30~, kmous=\E[M, rev=\E[7m, ri=\EM, rmkx=\E[?1l\E>,
4850 rmso=\E[m, rmul=\E[m,
4851 rs2=\E>\E[?1;3;4;5;6l\E[4l\E[?7h\E[m\E[r\E[2J\E[H,
4852 sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1
4854 sgr0=\E[m, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m,
4855 tbc=\E[3g, use=xterm+kbs, use=ansi+apparrows,
4856 use=ansi+csr, use=ansi+idc, use=ansi+idl, use=ansi+local,
4857 use=vt220+pcedit, use=vt100+enq,
4859 # Compatible with the R6 xterm
4860 # (from XFree86 3.2 distribution, <acsc> and <it> added, <blink@> removed)
4861 # added khome/kend, hts based on the R6 xterm code - TD
4862 # (khome/kend do not actually work in X11R5 or X11R6, but many people use this
4863 # for compatibility with other emulators).
4864 xterm-r6|xterm X11R6 version,
4865 OTbs, am, km, mir, msgr, xenl,
4866 cols#80, it#8, lines#24,
4867 acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
4868 bel=^G, bold=\E[1m, clear=\E[H\E[2J, cr=\r, cub1=^H, cud1=\n,
4869 cup=\E[%i%p1%d;%p2%dH, cuu1=\E[A, dch=\E[%p1%dP,
4870 dch1=\E[P, ed=\E[J, el=\E[K, enacs=\E)0, home=\E[H, ht=^I,
4872 is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
4873 kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kf1=\E[11~,
4874 kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
4875 kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
4876 kf18=\E[32~, kf19=\E[33~, kf2=\E[12~, kf20=\E[34~,
4877 kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
4878 kf8=\E[19~, kf9=\E[20~, kmous=\E[M, meml=\El, memu=\Em,
4879 rev=\E[7m, ri=\EM, rmacs=^O, rmir=\E[4l, rmkx=\E[?1l\E>,
4880 rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
4881 sgr0=\E[m, smacs=^N, smir=\E[4h, smkx=\E[?1h\E=, tbc=\E[3g,
4882 use=xterm+alt47, use=ansi+csr, use=ansi+idl,
4883 use=ansi+local, use=ansi+sgrso, use=ansi+sgrul,
4884 use=vt220+vtedit, use=xterm+kbs, use=vt100+enq,
4886 xterm-old|antique xterm version,
4888 # The monochrome version began as a copy of "xtermm" (from Solaris), and was
4889 # initially part of the xterm sources (in XFree86). But "xterm" continued to
4890 # grow, while "xterm-mono" had none of the newer features. Additionally,