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: gospodin_david on Nov 05, '03 02:36:39PM

As a perhaps better solution, you can put "export LESS=X" in your .bashrc (I'd suppose you could put the equivalent in .tcshrc) and ending less won't clear the screen. This may be better in that some progams might have more functionality in xterm (like vim) than they do in vt100.



[ Reply to This | # ]
10.3: Prevent Terminal from clearing screen after commands
Authored by: gospodin_david on Nov 05, '03 02:39:49PM

sorry, I meant your .bash_profile. Actually put it whereever you would need to for whatever shell (login, interactive, non-login, etc.) you want.



[ Reply to This | # ]
10.3: Prevent Terminal from clearing screen after commands
Authored by: stevec on Nov 05, '03 02:46:01PM
A good solution except that doing so blew away my aliases and custom prompt. Did this happen to anyone else?

[ Reply to This | # ]
10.3: Prevent Terminal from clearing screen after commands
Authored by: EatingPie on Nov 05, '03 03:09:36PM

Not sure what you did to cause this, since you're a subthread of the "LESS=X" branch.

One possibility is that Terminal works as a vt100, but bash still thinks you're xterm-color. Just do a "export TERM=vt100" and your colorization should return.

---
-Pie


[ Reply to This | # ]

10.3: Prevent Terminal from clearing screen after commands
Authored by: gospodin_david on Nov 05, '03 09:42:45PM

essentially, use whatever file you're using for initialization preferences and add that LESS=X to that file. It may be that by putting that line in .bashrc, another dotfile that you have all your settings in was ignored due to the presence of .bashrc.



[ Reply to This | # ]
10.3: Prevent Terminal from clearing screen after commands
Authored by: chancer on Nov 06, '03 11:49:21AM

Does anyone know what the .tcsh equivalent is?



[ Reply to This | # ]
10.3: Prevent Terminal from clearing screen after commands
Authored by: vectors_to_final on Nov 07, '03 10:20:37AM

setenv LESS X



[ Reply to This | # ]
10.3: Prevent Terminal from clearing screen after commands
Authored by: Accura on Nov 06, '03 05:40:17PM

Nice one, this is just what was needed.. Thanx from Down Under

Jameso

---
"The time has come," the walrus said. "To talk of many things..."



[ Reply to This | # ]