UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 42.2 Fixing a Hung Terminal or Job Chapter 42
Problems with Terminals
Next: 42.4 Checklist for Resetting a Messed Up Terminal
 

42.3 Why Changing TERM Sometimes Doesn't Work

The use of tset to set the TERMCAP environmentvariable (5.4) can cause problems for new users who do not understand it completely. For example, as long as the TERMCAP variable is not set, programs look by default in /etc/termcap. However, once the TERMCAP variable contains the actual termcap entry, changing the value of TERM will no longer have any effect on a program like vi.

If you set the value of TERM correctly but vi or other programs that depend on TERM still do not seem to work, check (6.1) that TERMCAP is not set to the actual termcap entry (41.11). You can clear this condition with the command:

% unsetenv TERMCAP

or:

$ TERMCAP=

or:

$ unset TERMCAP        (newer Bourne shells)

- TOR


Previous: 42.2 Fixing a Hung Terminal or Job UNIX Power ToolsNext: 42.4 Checklist for Resetting a Messed Up Terminal
42.2 Fixing a Hung Terminal or Job Book Index42.4 Checklist for Resetting a Messed Up Terminal

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System