Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Terminal clearing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Terminal clearing
Authored by: Ptitboul on Sep 16, '04 08:31:19AM

This is not a "terminal clearing" problem, but an "alternate screen" problem.
xterm-like terminals have two display area : the main area and the "alternate" area, which is dedicated for programs that temporarily need to display something without erasing the main display screen. This is a FAQ. Cf. http://dickey.his.com/xterm/xterm.faq.html#xterm_tite
http://lists.gnu.org/archive/html/screen-users/2004-07/msg00044.html
http://pirlwww.lpl.arizona.edu/user_notes/user_notes.cgi?id=97

Changing the terminal type to something else than xterm-color, that does not have an alternate screen, is not a good solution because it changes many other properties of the terminal.

Changing the pager is supposed to be done with the environment variable PAGER, automatically adding options to less (e.g. -X) is also supposed to be done with an environment variable : LESS, and not with an alias.



[ Reply to This | # ]