Date: Sun, 3 May 2009 22:51:42 +0200 From: "Paul B. Mahol" <onemda@gmail.com> To: jw <jwdevel@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: clear old output in login screen? Message-ID: <3a142e750905031351n38d762b7v46b4eeb1faad4799@mail.gmail.com> 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 5/3/09, jw <jwdevel@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. -- Paul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3a142e750905031351n38d762b7v46b4eeb1faad4799>