termcap xterm* xn:hs@
screen that all terminals that begin with ‘xterm’
have firm auto-margins that allow the last position on the screen to be
updated (xn), but they don’t really have a status line (no ’hs’ –
append ‘@’ to turn entries off). Note that we assume ‘xn’ for
all terminal names that start with ‘vt’, but only if you don’t
specify a termcap command for that terminal.
termcap vt* xn termcap vt102|vt220 Z0=\E[?3h:Z1=\E[?3l
Specifies the firm-margined ‘xn’ capability for all terminals that begin with ‘vt’, and the second line will also add the escape-sequences to switch into (Z0) and back out of (Z1) 132-character-per-line mode if this is a VT102 or VT220. (You must specify Z0 and Z1 in your termcap to use the width-changing commands.)
termcap vt100 "" l0=PF1:l1=PF2:l2=PF3:l3=PF4
This leaves your vt100 termcap alone and adds the function key labels to each window’s termcap entry.
termcap h19|z19 am@:im=\E@:ei=\EO dc=\E[P
Takes a h19 or z19 termcap and turns off auto-margins (am@) and enables the insert mode (im) and end-insert (ei) capabilities (the ‘@’ in the ‘im’ string is after the ‘=’, so it is part of the string). Having the ‘im’ and ‘ei’ definitions put into your terminal’s termcap will cause screen to automatically advertise the character-insert capability in each window’s termcap. Each window will also get the delete-character capability (dc) added to its termcap, which screen will translate into a line-update for the terminal (we’re pretending it doesn’t support character deletion).
If you would like to fully specify each window’s termcap entry, you
should instead set the
$SCREENCAP variable prior to running
screen. See Virtual Terminal, for the details of the
screen terminal emulation. See Termcap,
for more information on termcap definitions.