Date: Sun, 03 May 2009 17:27:32 -0700 From: perryh@pluto.rain.com To: jwdevel@gmail.com Cc: freebsd-questions@freebsd.org Subject: Re: clear old output in login screen? Message-ID: <49fe3674.T7f7dmOgxNx5YnmK%perryh@pluto.rain.com> In-Reply-To: <fa8771800905031429g10824451qc1f608b4189eff24@mail.gmail.com> References: <fa8771800905031146v51a8b752ra125f68a2520da4f@mail.gmail.com> <3a142e750905031351n38d762b7v46b4eeb1faad4799@mail.gmail.com> <fa8771800905031429g10824451qc1f608b4189eff24@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
jw <jwdevel@gmail.com> wrote: > 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. If I needed to do this, could not find a way to do it via configuration settings, and didn't want to hack the login source code, I would try renaming the login binary to something like login.real, and replacing it with an executable script containing something like: #!/bin/csh clear vidcontrol -C exec /usr/bin/login.real "$@" Granted such a hack will need to be redone any time you do an installworld.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49fe3674.T7f7dmOgxNx5YnmK%perryh>