Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2009 08:40:18 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        jw <jwdevel@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: clear old output in login screen?
Message-ID:  <20090503204018.GB66094@osiris.chen.org.nz>
In-Reply-To: <fa8771800905031146v51a8b752ra125f68a2520da4f@mail.gmail.com>
References:  <fa8771800905031146v51a8b752ra125f68a2520da4f@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@chen.org.nz>
------------------------------------------------------------------------
"We laugh in the face of danger, we drop icecubes down the vest of fear"
                                                 - Edmond Blackadder III



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090503204018.GB66094>