Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2009 14:29:10 -0700
From:      jw <jwdevel@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: clear old output in login screen?
Message-ID:  <fa8771800905031429g10824451qc1f608b4189eff24@mail.gmail.com>
In-Reply-To: <3a142e750905031351n38d762b7v46b4eeb1faad4799@mail.gmail.com>
References:  <fa8771800905031146v51a8b752ra125f68a2520da4f@mail.gmail.com> <3a142e750905031351n38d762b7v46b4eeb1faad4799@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 3, 2009 at 1:51 PM, Paul B. Mahol <onemda@gmail.com> wrote:
>
> echo $TERM | grep cons25 >> /dev/null && clear && vidcontrol -C
>

Aha! I didn't know about 'vidcontrol -C'
That combined with 'clear' does the trick.

However...
Is there any way I could have this execute when the "login:" prompt
displays, rather than having each user need to do it themselves?

In other words, I want this clearing to happen for all users
regardless of shell, etc.

I haven't seen anything in login(1) or login.conf(5) that allows this
kind of customization, but maybe I missed it...

-John



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