Subject: Re: clear screen before login
To: None <port-i386@netbsd.org>
From: Geoff Wing <sparkles@pobox.com>
List: port-i386
Date: 03/10/2001 11:55:03
Ryan Low <uberfrogus@yahoo.com> typed:
:Hi all. How would I set the system to clear the screen
:before login runs (ie after boot and after users log
:out)? It's not so pretty to see the tail end of the
:boot message or the last user's session remaining on
:the screen directly above the login prompt. Thanks for
:the help!

This isn't i386 specific.  Look in /etc/ttys for the appropriate
lines (e.g. ttyE0 in i386) and where it says, e.g.:
  ttyE0   "/usr/libexec/getty Pc"         vt220   on secure
                              ^^
Then look in /etc/gettytab for the "Pc" entry.  If it doesn't have
an "im" capability you can add one there or edit the "default"
entry.  The first characters of the "im" entry should then be:
   \ec
which is "RESET TO INITIAL STATE".
e.g.

default:\
	:ce:ck:np:im=\ec%s/%m (%h) (%t)\r\n\r\n:sp#9600:

Regards,
-- 
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>