clear old output in login screen?

perryh at perryh at
Tue May 5 08:20:27 UTC 2009

Mike Clarke <jmc-freebsd2 at> wrote:
> On Monday 04 May 2009, perryh at wrote:
> > ? #!/bin/csh
> > ? clear
> > ? vidcontrol -C
> > ? exec /usr/bin/login.real "$@"
> But this wouldn't prevent someone scrolling back with the scroll
> lock key before logging in. I assume the OP's requirement is to
> stop people from seeing previous users console activity.

That's what the "vidcontrol -C" line is supposed to accomplish,
based on my reading of vidcontrol(1) and earlier messages in the
thread.  Granted I have not actually tried it.

More information about the freebsd-questions mailing list