Date: Sat, 18 Jul 2009 05:32:24 +0200 From: Polytropon <freebsd@edvax.de> To: Joe Snikeris <joe@snikeris.com> Cc: freebsd-questions@freebsd.org Subject: Re: Clearing ttyv0 after boot Message-ID: <20090718053224.6dae3c38.freebsd@edvax.de> In-Reply-To: <20b8a1c50907171911t625ef579rbde5cc84f071e9f1@mail.gmail.com> References: <20b8a1c50907171911t625ef579rbde5cc84f071e9f1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Jul 2009 21:11:56 -0500, Joe Snikeris <joe@snikeris.com> wrote: > Hi all, > > As the subject suggests, I'd like to clear ttyv0 immediately after > booting so that it looks exactly like the other ttys. I suspect I > might have to add a local rc script, but I'm fairly new to FreeBSD and > am not sure if this is the correct way to go. > > Does anyone have any pointers? You could add the command /usr/bin/tput clear as the last line (prior to "exit 0") to /etc/rc - but it's not encouraged to modify this file because it can cause "trouble" on updating. But it will work. Note that you can still press the Scroll Lock key and see the messages that have been scrolled off the terminal. If you want, you can use an additional call to /usr/sbin/vidcontrol to clear the buffer. Refer to the vidcontrol manpage for how to do that. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090718053224.6dae3c38.freebsd>