Re: clear old output in login screen?
- From: perryh@xxxxxxxxxxxxxx
- Date: Sun, 03 May 2009 17:27:32 -0700
jw <jwdevel@xxxxxxxxx> wrote:
On Sun, May 3, 2009 at 1:51 PM, Paul B. Mahol <onemda@xxxxxxxxx> 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.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: clear old output in login screen?
- From: Mike Clarke
- Re: clear old output in login screen?
- From: Matt Emmerton
- Re: clear old output in login screen?
- References:
- clear old output in login screen?
- From: jw
- Re: clear old output in login screen?
- From: Paul B. Mahol
- Re: clear old output in login screen?
- From: jw
- clear old output in login screen?
- Prev by Date: Re: Poor ZFS performance
- Next by Date: Broken Partition
- Previous by thread: Re: clear old output in login screen?
- Next by thread: Re: clear old output in login screen?
- Index(es):
Relevant Pages
|