sun-s, sun-s-e: added
[unix-history] / usr / src / share / termcap / termcap.5
CommitLineData
c4737001
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
c007a4d8 5.\" @(#)termcap.5 6.2 (Berkeley) %G%
c4737001
KM
6.\"
7.tr ||
21a6ebf7 8.TH TERMCAP 5 ""
c4737001
KM
9.UC 3
10.SH NAME
11termcap \- terminal capability data base
12.SH SYNOPSIS
13/etc/termcap
14.SH DESCRIPTION
15.I Termcap
16is a data base describing terminals,
17used,
18.IR e.g. ,
19by
20.IR vi (1)
21and
773db9bd 22.IR curses (3X).
c4737001
KM
23Terminals are described in
24.I termcap
25by giving a set of capabilities which they have, and by describing
26how operations are performed.
27Padding requirements and initialization sequences
28are included in
29.I termcap.
30.PP
31Entries in
32.I termcap
33consist of a number of `:' separated fields.
34The first entry for each terminal gives the names which are known for the
35terminal, separated by `|' characters. The first name is always 2 characters
36long and is used by older version 6 systems which store the terminal type
37in a 16 bit word in a systemwide data base.
38The second name given is the most common abbreviation for the terminal, and the
39last name given should be a long name fully identifying the terminal.
40The second name should contain no blanks; the last name may well contain
41blanks for readability.
42.SH CAPABILITIES
43.nf
44(P) indicates padding may be specified
45(P*) indicates that padding may be based on no. lines affected
46
47.ta \w'k0-k9 'u +\w'Type 'u +\w'Pad? 'u
48\fBName Type Pad? Description\fR
49ae str (P) End alternate character set
50al str (P*) Add new blank line
51am bool Terminal has automatic margins
52as str (P) Start alternate character set
53bc str Backspace if not \fB^H\fR
21a6ebf7 54bl str Bell if not \fB^G\fR
c4737001
KM
55bs bool Terminal can backspace with \fB^H\fR
56bt str (P) Back tab
57bw bool Backspace wraps from column 0 to last column
58CC str Command character in prototype if terminal settable
59cd str (P*) Clear to end of display
60ce str (P) Clear to end of line
61ch str (P) Like cm but horizontal motion only, line stays same
62cl str (P*) Clear screen
63cm str (P) Cursor motion
64co num Number of columns in a line
65cr str (P*) Carriage return, (default \fB^M\fR)
66cs str (P) Change scrolling region (vt100), like cm
67cv str (P) Like ch but vertical only.
68da bool Display may be retained above
69dB num Number of millisec of bs delay needed
70db bool Display may be retained below
71dC num Number of millisec of cr delay needed
72dc str (P*) Delete character
73dF num Number of millisec of ff delay needed
74dl str (P*) Delete line
75dm str Delete mode (enter)
76dN num Number of millisec of nl delay needed
77do str Down one line
78dT num Number of millisec of tab delay needed
79ed str End delete mode
80ei str End insert mode; give \*(lq:ei=:\*(rq if \fBic\fR
81eo str Can erase overstrikes with a blank
82ff str (P*) Hardcopy terminal page eject (default \fB^L\fR)
83hc bool Hardcopy terminal
84hd str Half-line down (forward 1/2 linefeed)
c007a4d8 85ho str Home cursor
c4737001
KM
86hu str Half-line up (reverse 1/2 linefeed)
87hz str Hazeltine; can't print ~'s
88ic str (P) Insert character
89if str Name of file containing \fBis\fR
90im bool Insert mode (enter); give \*(lq:im=:\*(rq if \fBic\fR
91in bool Insert mode distinguishes nulls on display
92ip str (P*) Insert pad after character inserted
93is str Terminal initialization string
94k0-k9 str Sent by \*(lqother\*(rq function keys 0-9
95kb str Sent by backspace key
96kd str Sent by terminal down arrow key
97ke str Out of \*(lqkeypad transmit\*(rq mode
98kh str Sent by home key
99kl str Sent by terminal left arrow key
100kn num Number of \*(lqother\*(rq keys
101ko str Termcap entries for other non-function keys
102kr str Sent by terminal right arrow key
103ks str Put terminal in \*(lqkeypad transmit\*(rq mode
104ku str Sent by terminal up arrow key
105l0-l9 str Labels on \*(lqother\*(rq function keys
106li num Number of lines on screen or page
c007a4d8 107ll str Last line, first column
c4737001
KM
108ma str Arrow key map, used by vi version 2 only
109mi bool Safe to move while in insert mode
110ml str Memory lock on above cursor.
111ms bool Safe to move while in standout and underline mode
112mu str Memory unlock (turn off memory lock).
113nc bool No correctly working carriage return (DM2500,H2000)
114nd str Non-destructive space (cursor right)
115nl str (P*) Newline character (default \fB\en\fR)
116ns bool Terminal is a \s-2CRT\s+2 but doesn't scroll.
117os bool Terminal overstrikes
118pc str Pad character (rather than null)
119pt bool Has hardware tabs (may need to be set with \fBis\fR)
120se str End stand out mode
121sf str (P) Scroll forwards
122sg num Number of blank chars left by so or se
123so str Begin stand out mode
124sr str (P) Scroll reverse (backwards)
125ta str (P) Tab (other than \fB^I\fR or with padding)
126tc str Entry of similar terminal - must be last
127te str String to end programs that use \fBcm\fP
128ti str String to begin programs that use \fBcm\fR
129uc str Underscore one char and move past it
130ue str End underscore mode
131ug num Number of blank chars left by us or ue
132ul bool Terminal underlines even though it doesn't overstrike
133up str Upline (cursor up)
134us str Start underscore mode
135vb str Visible bell (may not move cursor)
136ve str Sequence to end open/visual mode
137vs str Sequence to start open/visual mode
138xb bool Beehive (f1=escape, f2=ctrl C)
139xn bool A newline is ignored after a wrap (Concept)
140xr bool Return acts like \fBce\fP \er \en (Delta Data)
141xs bool Standout not erased by writing over it (HP 264?)
142xt bool Tabs are destructive, magic so char (Teleray 1061)
143.fi
144.PP
145.B A Sample Entry
146.PP
147The following entry, which describes the Concept\-100, is among the more
148complex entries in the
149.I termcap
150file as of this writing.
151(This particular concept entry is outdated,
152and is used as an example only.)
153.PP
154.nf
155c1\||\|c100\||\|concept100:is=\eEU\eEf\eE7\eE5\eE8\eEl\eENH\eEK\eE\e200\eEo&\e200:\e
156 :al=3*\eE^R:am:bs:cd=16*\eE^C:ce=16\eE^S:cl=2*^L:cm=\eEa%+ %+ :co#80:\e
157 :dc=16\eE^A:dl=3*\eE^B:ei=\eE\e200:eo:im=\eE^P:in:ip=16*:li#24:mi:nd=\eE=:\e
158 :se=\eEd\eEe:so=\eED\eEE:ta=8\et:ul:up=\eE;:vb=\eEk\eEK:xn:
159.fi
160.PP
161Entries may continue onto multiple lines by giving a \e as the last
162character of a line, and that empty fields
163may be included for readability (here between the last field on a line
164and the first field on the next).
165Capabilities in
166.I termcap
167are of three types:
168Boolean capabilities which indicate that the terminal has
169some particular feature, numeric capabilities giving the size of the terminal
170or the size of particular delays, and string
171capabilities, which give a sequence which can be used to perform particular
172terminal operations.
173.PP
174.B Types of Capabilities
175.PP
176All capabilities have two letter codes. For instance, the fact that
177the Concept has \*(lqautomatic margins\*(rq (i.e. an automatic return and linefeed
178when the end of a line is reached) is indicated by the capability \fBam\fR.
179Hence the description of the Concept includes \fBam\fR.
180Numeric capabilities are followed by the character `#' and then the value.
181Thus \fBco\fR which indicates the number of columns the terminal has
182gives the value `80' for the Concept.
183.PP
184Finally, string valued capabilities, such as \fBce\fR (clear to end of line
185sequence) are given by the two character code, an `=', and then a string
186ending at the next following `:'. A delay in milliseconds may appear after
187the `=' in such a capability, and padding characters are supplied by the
188editor after the remainder of the string is sent to provide this delay.
189The delay can be either a integer, e.g. `20', or an integer followed by
190an `*', i.e. `3*'. A `*' indicates that the padding required is proportional
191to the number of lines affected by the operation, and the amount given is
192the per-affected-unit padding required.
193When a `*' is specified, it is sometimes useful to give a delay of the form
194`3.5' specify a delay per unit to tenths of milliseconds.
195.PP
196A number of escape sequences are provided in the string valued capabilities
197for easy encoding of characters there. A \fB\eE\fR maps to an \s-2ESCAPE\s0
198character, \fB^x\fR maps to a control-x for any appropriate x, and the sequences
199\fB\en \er \et \eb \ef\fR give a newline, return, tab, backspace and formfeed.
200Finally, characters may be given as three octal digits after a \fB\e\fR,
201and the characters \fB^\fR and \fB\e\fR may be given as \fB\e^\fR and \fB\e\e\fR.
202If it is necessary to place a \fB:\fR in a capability it must be escaped in
203octal as \fB\e072\fR.
204If it is necessary to place a null character in a string capability it
205must be encoded as \fB\e200\fR. The routines which deal with
206.I termcap
207use C strings, and strip the high bits of the output very late so that
208a \fB\e200\fR comes out as a \fB\e000\fR would.
209.br
210.ne 5
211.PP
212.B Preparing Descriptions
213.PP
214We now outline how to prepare descriptions of terminals.
215The most effective way to prepare a terminal description is by imitating
216the description of a similar terminal in
217.I termcap
218and to build up a description gradually, using partial descriptions
219with
220.I ex
221to check that they are correct.
222Be aware that a very unusual terminal may expose deficiencies in
223the ability of the
224.I termcap
225file to describe it
226or bugs in
227.I ex.
228To easily test a new terminal description you can set the environment variable
229TERMCAP to a pathname of a file containing the description you are working
230on and the editor will look there rather than in
231.I /etc/termcap.
232TERMCAP can also be set to the termcap entry itself
233to avoid reading the file when starting up the editor.
234(This only works on version 7 systems.)
235.PP
236.B Basic capabilities
237.PP
238The number of columns on each line for the terminal is given by the
239\fBco\fR numeric capability. If the terminal is a \s-2CRT\s0, then the
240number of lines on the screen is given by the \fBli\fR capability.
241If the terminal wraps around to the beginning of the next line when
242it reaches the right margin, then it should have the \fBam\fR capability.
243If the terminal can clear its screen, then this is given by the
244\fBcl\fR string capability. If the terminal can backspace, then it
245should have the \fBbs\fR capability, unless a backspace is accomplished
246by a character other than \fB^H\fR (ugh) in which case you should give
247this character as the \fBbc\fR string capability. If it overstrikes
248(rather than clearing a position when a character is struck over)
249then it should have the \fBos\fR capability.
250.PP
251A very important point here is that the local cursor motions encoded
252in
253.I termcap
254are undefined at the left and top edges of a \s-2CRT\s0 terminal.
255The editor will never attempt to backspace around the left edge, nor
256will it attempt to go up locally off the top. The editor assumes that
257feeding off the bottom of the screen will cause the screen to scroll up,
258and the \fBam\fR capability tells whether the cursor sticks at the right
259edge of the screen. If the terminal has switch selectable automatic margins,
260the
261.I termcap
262file usually assumes that this is on, i.e. \fBam\fR.
263.PP
264These capabilities suffice to describe hardcopy and \*(lqglass-tty\*(rq terminals.
265Thus the model 33 teletype is described as
266.PP
267.DT
268 t3\||\|33\||\|tty33:co#72:os
269.PP
270while the Lear Siegler \s-2ADM\-3\s0 is described as
271.PP
272.DT
273 cl\||\|adm3|3|lsi adm3:am:bs:cl=^Z:li#24:co#80
274.PP
275.B Cursor addressing
276.PP
277Cursor addressing in the terminal is described by a
278\fBcm\fR string capability, with
773db9bd 279.IR printf (3S)
c4737001
KM
280like escapes \fB%x\fR in it.
281These substitute to encodings of the current line or column position,
282while other characters are passed through unchanged.
283If the \fBcm\fR string is thought of as being a function, then its
284arguments are the line and then the column to which motion is desired,
285and the \fB%\fR encodings have the following meanings:
286.PP
287.DT
288.nf
289 %d as in \fIprintf\fR, 0 origin
290 %2 like %2d
291 %3 like %3d
292 %. like %c
293 %+x adds \fIx\fR to value, then %.
294 %>xy if value > x adds y, no output.
295 %r reverses order of line and column, no output
296 %i increments line/column (for 1 origin)
297 %% gives a single %
298 %n exclusive or row and column with 0140 (DM2500)
299 %B BCD (16*(x/10)) + (x%10), no output.
300 %D Reverse coding (x-2*(x%16)), no output. (Delta Data).
301.fi
302.PP
303Consider the HP2645, which, to get to row 3 and column 12, needs
304to be sent \eE&a12c03Y padded for 6 milliseconds. Note that the order
305of the rows and columns is inverted here, and that the row and column
306are printed as two digits. Thus its \fBcm\fR capability is \*(lqcm=6\eE&%r%2c%2Y\*(rq.
307The Microterm \s-2ACT-IV\s0 needs the current row and column sent
308preceded by a \fB^T\fR, with the row and column simply encoded in binary,
309\*(lqcm=^T%.%.\*(rq. Terminals which use \*(lq%.\*(rq need to be able to
310backspace the cursor (\fBbs\fR or \fBbc\fR),
311and to move the cursor up one line on the screen (\fBup\fR introduced below).
312This is necessary because it is not always safe to transmit \fB\et\fR, \fB\en\fR
313\fB^D\fR and \fB\er\fR, as the system may change or discard them.
314.PP
315A final example is the \s-2LSI ADM\s0-3a, which uses row and column
316offset by a blank character, thus \*(lqcm=\eE=%+ %+ \*(rq.
317.PP
318.B Cursor motions
319.PP
320If the terminal can move the cursor one position to the right, leaving
321the character at the current position unchanged, then this sequence should
322be given as \fBnd\fR (non-destructive space). If it can move the cursor
323up a line
324on the screen in the same column, this should be given as \fBup\fR.
325If the terminal has no cursor addressing capability, but can home the cursor
326(to very upper left corner of screen) then this can be given as
327\fBho\fR; similarly a fast way of getting to the lower left hand corner
328can be given as \fBll\fR; this may involve going up with \fBup\fR
329from the home position,
330but the editor will never do this itself (unless \fBll\fR does) because it
331makes no assumption about the effect of moving up from the home position.
332.PP
333.B Area clears
334.PP
335If the terminal can clear from the current position to the end of the
336line, leaving the cursor where it is, this should be given as \fBce\fR.
337If the terminal can clear from the current position to the end of the
338display, then this should be given as \fBcd\fR.
339The editor only uses
340\fBcd\fR from the first column of a line.
341.PP
342.B Insert/delete line
343.PP
344If the terminal can open a new blank line before the line where the cursor
345is, this should be given as \fBal\fR; this is done only from the first
346position of a line. The cursor must then appear on the newly blank line.
347If the terminal can delete the line which the cursor is on, then this
348should be given as \fBdl\fR; this is done only from the first position on
349the line to be deleted.
350If the terminal can scroll the screen backwards, then this can be given as
351\fBsb\fR, but just \fBal\fR suffices.
352If the terminal can retain display memory above then the
353\fBda\fR capability should be given; if display memory can be retained
354below then \fBdb\fR should be given. These let the editor understand
355that deleting a line on the screen may bring non-blank lines up from below
356or that scrolling back with \fBsb\fR may bring down non-blank lines.
357.PP
358.B Insert/delete character
359.PP
360There are two basic kinds of intelligent terminals with respect to
361insert/delete character which can be described using
362.I termcap.
363The most common insert/delete character operations affect only the characters
364on the current line and shift characters off the end of the line rigidly.
365Other terminals, such as the Concept 100 and the Perkin Elmer Owl, make
366a distinction between typed and untyped blanks on the screen, shifting
367upon an insert or delete only to an untyped blank on the screen which is
368either eliminated, or expanded to two untyped blanks. You can find out
369which kind of terminal you have by clearing the screen and then typing
370text separated by cursor motions. Type \*(lqabc\ \ \ \ def\*(rq using local
371cursor motions (not spaces) between the \*(lqabc\*(rq and the \*(lqdef\*(rq.
372Then position the cursor before the \*(lqabc\*(rq and put the terminal in insert
373mode. If typing characters causes the rest of the line to shift
374rigidly and characters to fall off the end, then your terminal does
375not distinguish between blanks and untyped positions. If the \*(lqabc\*(rq
376shifts over to the \*(lqdef\*(rq which then move together around the end of the
377current line and onto the next as you insert, you have the second type of
378terminal, and should give the capability \fBin\fR, which stands for
379\*(lqinsert null\*(rq. If your terminal does something different and unusual
380then you may have to modify the editor to get it to use the insert
381mode your terminal defines. We have seen no terminals which have an insert
382mode not not falling into one of these two classes.
383.PP
384The editor can handle both terminals which have an insert mode, and terminals
385which send a simple sequence to open a blank position on the current line.
386Give as \fBim\fR the sequence to get into insert mode, or give it an
387empty value if your terminal uses a sequence to insert a blank position.
388Give as \fBei\fR the sequence to leave insert mode (give this, with
389an empty value also if you gave \fBim\fR so).
390Now give as \fBic\fR any sequence needed to be sent just before sending
391the character to be inserted. Most terminals with a true insert mode
392will not give \fBic\fR, terminals which send a sequence to open a screen
393position should give it here. (Insert mode is preferable to the sequence
394to open a position on the screen if your terminal has both.)
395If post insert padding is needed, give this as a number of milliseconds
396in \fBip\fR (a string option). Any other sequence which may need to be
397sent after an insert of a single character may also be given in \fBip\fR.
398.PP
399It is occasionally necessary to move around while in insert mode
400to delete characters on the same line (e.g. if there is a tab after
401the insertion position). If your terminal allows motion while in
402insert mode you can give the capability \fBmi\fR to speed up inserting
403in this case. Omitting \fBmi\fR will affect only speed. Some terminals
404(notably Datamedia's) must not have \fBmi\fR because of the way their
405insert mode works.
406.PP
407Finally, you can specify delete mode by giving \fBdm\fR and \fBed\fR
408to enter and exit delete mode, and \fBdc\fR to delete a single character
409while in delete mode.
410.PP
411.B "Highlighting, underlining, and visible bells"
412.PP
413If your terminal has sequences to enter and exit standout mode these
414can be given as \fBso\fR and \fBse\fR respectively.
415If there are several flavors of standout mode
416(such as inverse video, blinking, or underlining \-
417half bright is not usually an acceptable \*(lqstandout\*(rq mode
418unless the terminal is in inverse video mode constantly)
419the preferred mode is inverse video by itself.
420If the code to change into or out of standout
421mode leaves one or even two blank spaces on the screen,
422as the TVI 912 and Teleray 1061 do,
423then \fBug\fR should be given to tell how many spaces are left.
424.PP
425Codes to begin underlining and end underlining can be given as \fBus\fR
426and \fBue\fR respectively.
427If the terminal has a code to underline the current character and move
428the cursor one space to the right,
429such as the Microterm Mime,
430this can be given as \fBuc\fR.
431(If the underline code does not move the cursor to the right,
432give the code followed by a nondestructive space.)
433.PP
434Many terminals, such as the HP 2621, automatically leave standout
435mode when they move to a new line or the cursor is addressed.
436Programs using standout mode should exit standout mode before
437moving the cursor or sending a newline.
438.PP
439If the terminal has
440a way of flashing the screen to indicate an error quietly (a bell replacement)
441then this can be given as \fBvb\fR; it must not move the cursor.
442If the terminal should be placed in a different mode during
443open and visual modes of
444.I ex,
445this can be given as
446\fBvs\fR and \fBve\fR, sent at the start and end of these modes
447respectively. These can be used to change, e.g., from a underline
448to a block cursor and back.
449.PP
450If the terminal needs to be in a special mode when running
451a program that addresses the cursor,
452the codes to enter and exit this mode can be given as \fBti\fR and \fBte\fR.
453This arises, for example, from terminals like the Concept with more than
454one page of memory.
455If the terminal has only memory relative cursor addressing and not screen
456relative cursor addressing, a one screen-sized window must be fixed into
457the terminal for cursor addressing to work properly.
458.PP
459If your terminal correctly generates underlined characters
460(with no special codes needed)
461even though it does not overstrike,
462then you should give the capability \fBul\fR.
463If overstrikes are erasable with a blank,
464then this should be indicated by giving \fBeo\fR.
465.PP
466.B Keypad
467.PP
468If the terminal has a keypad that transmits codes when the keys are pressed,
469this information can be given. Note that it is not possible to handle
470terminals where the keypad only works in local (this applies, for example,
471to the unshifted HP 2621 keys).
472If the keypad can be set to transmit or not transmit,
473give these codes as \fBks\fR and \fBke\fR.
474Otherwise the keypad is assumed to always transmit.
475The codes sent by the left arrow, right arrow, up arrow, down arrow,
476and home keys can be given as \fBkl, kr, ku, kd, \fRand\fB kh\fR respectively.
477If there are function keys such as f0, f1, ..., f9, the codes they send
478can be given as \fBk0, k1, ..., k9\fR.
479If these keys have labels other than the default f0 through f9, the labels
480can be given as \fBl0, l1, ..., l9\fR.
481If there are other keys that transmit the same code as the terminal expects
482for the corresponding function, such as clear screen, the \fItermcap\fP
4832 letter codes can be given in the \fBko\fR capability,
484for example, \*(lq:ko=cl,ll,sf,sb:\*(rq, which says that the terminal has
485clear, home down, scroll down, and scroll up keys that transmit
486the same thing as the cl, ll, sf, and sb entries.
487.PP
488The
489.B ma
490entry is also used to indicate arrow keys on terminals which have
491single character arrow keys. It is obsolete but still in use in
492version 2 of vi, which must be run on some minicomputers due to
493memory limitations.
494This field is redundant with
495.BR "kl, kr, ku, kd, " and " kh" .
496It consists of groups of two characters.
497In each group, the first character is what an arrow key sends, the
498second character is the corresponding vi command.
499These commands are
500.B h
501for
502.BR kl ,
503.B j
504for
505.BR kd ,
506.B k
507for
508.BR ku ,
509.B l
510for
511.BR kr ,
512and
513.B H
514for
515.BR kh .
516For example, the mime would be
517.B ":ma=^Kj^Zk^Xl:"
518indicating arrow keys left (^H), down (^K), up (^Z), and right (^X).
519(There is no home key on the mime.)
520.PP
521.B Miscellaneous
522.PP
523If the terminal requires other than a null (zero) character as a pad,
524then this can be given as \fBpc\fR.
525.PP
526If tabs on the terminal require padding, or if the terminal uses a
527character other than \fB^I\fR to tab, then this can be given as \fBta\fR.
528.PP
529Hazeltine terminals, which don't allow `~' characters to be printed should
530indicate \fBhz\fR.
531Datamedia terminals, which echo carriage-return linefeed for carriage return
532and then ignore a following linefeed should indicate \fBnc\fR.
533Early Concept terminals, which ignore a linefeed immediately after an \fBam\fR
534wrap, should indicate \fBxn\fR.
535If an erase-eol is required to get rid of standout
536(instead of merely writing on top of it),
537\fBxs\fP should be given.
538Teleray terminals, where tabs turn all characters moved over to blanks,
539should indicate \fBxt\fR.
540Other specific terminal problems may be corrected by adding more
541capabilities of the form \fBx\fIx\fR.
542.PP
543Other capabilities
544include \fBis\fR, an initialization string for the terminal,
545and \fBif\fR, the name of a file containing long initialization strings.
546These strings are expected to properly clear and then set the tabs
547on the terminal, if the terminal has settable tabs.
548If both are given, \fBis\fR will be printed before \fBif\fR.
549This is useful where \fBif\fR is
550.I /usr/lib/tabset/std
551but \fBis\fR
552clears the tabs first.
553.PP
554.B Similar Terminals
555.PP
556If there are two very similar terminals,
557one can be defined as being just like the other with certain exceptions.
558The string capability \fBtc\fR can be given
559with the name of the similar terminal.
560This capability must be \fIlast\fP and the combined length of the two entries
561must not exceed 1024. Since
562.I termlib
563routines search the entry from left to right, and since the tc capability is
564replaced by the corresponding entry, the capabilities given at the left
565override the ones in the similar terminal.
773db9bd 566A capability can be canceled with \fBxx@\fR where xx is the capability.
c4737001
KM
567For example, the entry
568.PP
569 hn\||\|2621nl:ks@:ke@:tc=2621:
570.PP
571defines a 2621nl that does not have the \fBks\fR or \fBke\fR capabilities,
572and hence does not turn on the function key labels when in visual mode.
573This is useful for different modes for a terminal, or for different
574user preferences.
575.SH FILES
576.DT
577/etc/termcap file containing terminal descriptions
578.SH SEE ALSO
773db9bd 579ex(1), curses(3X), termcap(3X), tset(1), vi(1), ul(1), more(1)
c4737001
KM
580.SH AUTHOR
581William Joy
582.br
583Mark Horton added underlining and keypad support
584.SH BUGS
585.I Ex
586allows only 256 characters for string capabilities, and the routines
587in
773db9bd 588.IR termcap (3X)
c4737001
KM
589do not check for overflow of this buffer.
590The total length of a single entry (excluding only escaped newlines)
591may not exceed 1024.
592.PP
593The
594.BR ma ,
595.BR vs ,
596and
597.B ve
598entries are specific to the
599.I vi
600program.
601.PP
602Not all programs support all entries.
603There are entries that are not supported by any program.