clear old output in login screen?

Jonathan Chen jonc at chen.org.nz
Sun May 3 20:40:20 UTC 2009


On Sun, May 03, 2009 at 11:46:30AM -0700, jw wrote:
> Currently, if I log in, do some work, then log out (from plain TTY, no
> X/SSH/etc), the output of my previous session is still readable above
> the new "login: " prompt. One can use scroll lock to view even more.
> 
> How do I get it to clear the screen (and the scroll buffer) when the
> login prompt gets redisplayed?

If you're using tcsh, you can put the following into ~/.logout:

	clear

-- 
Jonathan Chen <jonc at chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
                                                 - Edmond Blackadder III


More information about the freebsd-questions mailing list