set_termcap(1L)

NAME
set_termcap - set the TERMCAP entry for an mgr window.

SYNOPSIS
eval `set_termcap [ -v ]`

DESCRIPTION
Set_termcap prints on stdout the shell commands required to set the TERMCAP environment variable appropriately for the current window size of an mgr window. The COLUMNS and ROWS environment variables are also set. The TERM environment variable is set by the server at window creation, not by this program.

Set_termcap looks at the SHELL environment variable to decide whether the appropriate syntax to use is that of sh, csh, or rc. The default shell syntax is that of sh.

Adding the -v option to set_termcap changes the termcap entry to add the capability in vi of moving the cursor by clicking the right mouse button. If you do not require mousing in vi, then leaving off the option will lessen the chance of confusing other termcap-aware programs if you happen to click mouse buttons unexpectedly. GNU-emacs should be able to deal with either setup, as long as it has the mgr terminal handling code loaded.

BUGS
Csh users may need to use: set noglob; eval `set_termcap` to keep csh from getting confused.

SEE ALSO
csh(1) mgr(1L) rc(1) sh(1)

AUTHORS
S. A. Uhler, Vincent Broman