clear old output in login screen?
Paul B. Mahol
onemda at gmail.com
Sun May 3 20:51:45 UTC 2009
On 5/3/09, jw <jwdevel at gmail.com> 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?
My /etc/csh.logout and /etc/csh.login contains:
echo $TERM | grep cons25 >> /dev/null && clear && vidcontrol -C
For other shells it's similar.
More information about the freebsd-questions