, Will Roberts <oldbear@arctos.com>
From: Andrew Doran <ad@netbsd.org>
List: netbsd-help
Date: 08/06/2001 20:08:27
> > 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?
If you use `cs', it pulls the escapes from termcap. I don't know if it's
part of NetBSD-1.5
> This may work for some, but what about when you don't know what sort
> of terminal is going to be used? ie, for a dialin, it's possible someone
> will be set to a Wyse, Televideo or some other exotic emulation which
> doesn't recognise the VT100 escape codes. The system isn't going to know
> what sort of terminal you're using until after you login.
`cl' or `cs' should be defined as part of the `Pc' entry in gettytab, or
whatever's appropriate for your setup.
Andrew