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


Click here to return to the '10.3: Prevent Terminal from clearing screen after commands' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Prevent Terminal from clearing screen after commands
Authored by: rogueleader on Nov 05, '03 03:21:10PM
If you use tcsh you can use this command to have less stop clearing the screen after quit.

 setenv PAGER '/usr/bin/less -X'
There is most likely a way to do it in bash.

rogue leader

[ Reply to This | # ]

10.3: Prevent Terminal from clearing screen after commands
Authored by: bhwagner on Nov 05, '03 03:35:09PM
This didn't work for me. However, the following line did:
setenv LESS -X

[ Reply to This | # ]
10.3: Prevent Terminal (bash) from clearing screen after commands
Authored by: hartkeks on Nov 06, '03 12:40:05AM
for bash add this to your ~/.bashrc

PAGER='/usr/bin/less -X'
export PAGER



[ Reply to This | # ]