Subject: Re: how to change pre-login message?
To: Andrew Doran <ad@netbsd.org>
From: Will Roberts <oldbear@arctos.com>
List: netbsd-help
Date: 08/06/2001 09:21:13
At 10:09 AM 8/6/01 +0100, you wrote:

>Will Roberts <oldbear@arctos.com> wrote:
>
>> I was able to edit the /etc/gettytab file to add the screen clearing 
>> and cursor positioning escape sequences without any problem:
>> 
>> default:\
>>     :ce:ck:np:im=\033[2J\033[H\r\n%s/%m (%h) (%t)\r\n\r\n:sp#9600:
>                   ^^^^^^^^^^^^^
>
>Wrong - for this you should be using `cl' or `cs'. The latter addresses the
>problem you describe here:
>
>> This clearly is the 'quick-and-dirty' approach because it incorporates 
>> the VT-100 esc codes in the im= field rather than referencing them 
>> elsewhere.

Andrew

Yes. That was my point. This worked as a quick fix but it should be 
done by referencing the cl entry in the database:

     cl   str   NULL   screen clear sequence

I believe that would be the proper way to allow for different terminal 
types, no?

If NetBSD is set up with VT100 as the default terminal type, for the 
console (in ttys?) then cl would be defined by the definition of cl for 
the VT100 in termcap?

Regards,
Will