Subject: Re: how to change pre-login message?
To: Will Roberts <oldbear@arctos.com>
From: Eric Fox <eric@fox.phoenix.az.us>
List: netbsd-help
Date: 08/06/2001 07:03:53
Rather than use an escape sequence -- which, I've found, causes trouble
on a couple of odd terminal clients -- I use a series of carriage
returns and linefeeds.  In my /etc/gettytab, I've replaced the lines:

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

with the following:

default:\
       
:ce:ck:np:im=\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\
n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\
n\r\n\r\n\r\n\r\n\r\n\r\nConnected to %h,\r\nUnauthorized access is
prohibited!\
r\n\r\n:sp#9600:

This has the affect of clearing the screen/window by rolling everything
off the top and placing your login message and prompt at the bottom of
the screen/window.
-- 
  /\---/\  Eric J Fox
 /  o o  \ http://fox.phoenix.az.us
 \.\   /./ ---------------------------
    \@/    "Of course it runs NetBSD."
.
Will Roberts wrote:
> 
> I have installed NetBSD 1.5 on a sparc IPC.  I am running it from a
> terminal on the serial port.
> 
> NetBSD prompts the user to login as follows:
> 
> |  NetBSD/sparc (komodo-dragon) (console)
> |
> |  login:
> 
> How can I change the message line?  I would like to add the VT100
> ansi control code Esc [ 2 J  ("/022[2J") to clear the screen so
> that the end of the previous user's session is not left on the
> terminal and the welcome message appears at the top of a blank
> screen.  I might also change the text of the welcome message at
> the same time.
> 
> Regards,
> Will
> The Old Bear