Subject: Re: clear screen when logout
To: None <sommerfeld@orchard.arlington.ma.us>
From: Simon Burge <simonb@wasabisystems.com>
List: port-i386
Date: 10/16/2000 22:21:38
Bill Sommerfeld wrote:
> > After reading getty(8) and gettytab(5) I got it to work on my system by
> > adding the following two case sensitive lines to /etc/gettytab
> >
> > Pc:\
> >:cl=\e[2J:ce:ck:np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#9600:
> >
> > Which is ':cl=\e[2J' added to the default terminal type.
>
> We should probably enable something like this by default in getty.
I'd prefer to not see a particular terminal types' escape sequence
hard-coded in the gettytab (even though just about everything that's
still in use would probably understand ANSI escape sequences). Perhaps
something which pinches the default term entry from /etc/ttys and uses
the clear-screen sequence from the termcap entry for that terminal type?
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Sales, Support and Service: http://www.wasabisystems.com/