Subject: Re: wscons termcap entry
To: None <tech-userlevel@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-userlevel
Date: 07/02/2002 10:48:05
On Tue, 02 Jul 2002, Joerg Klemenz wrote:
> You may want to look at the wscons entry I created. It's not good, but its
> better than the others...
> If I understand termcap better I will make a new entry.
> wscons|NetBSD wscons in 25 line mode:\
> :ut:ms:kh=\E[7~:@7=\E[8~:\
> :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:\
> :k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k0=\E[21~:\
> :F1=\E[23~:F2=\E[24~:co#80:li#25:tc=vt220:
> wscons-color|NetBSD wscons in 25 line mode with color:\
> :Co#16:NC#32:pa#256:\
> :AB=\E[4%dm:AF=\E[3%dm:op=\E[m:\
> :tc=wscons:
I came up with the following termcap entries a couple of years ago,
with the assistance of a termcap-testing application whose name I have
forgotten, and cut and paste from various other sources. (This was on
an i386 machine.) The several chained entries instead of a single entry
are an artifact of the way I debugged them.
xx-wsvt25|A copy of the wsvt25 entry from NetBSD's default termcap file:\
:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:\
:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
:co#80:li#25:tc=vt220:
wsvt25-fixedglitches|Fixed some bugs:\
:ut:db:ms:it#8:\
:tc=xx-wsvt25:
wsvt25-colour|Added colour (note not spelled color to avoid a name collision):\
:Co#8:pa#64:\
:op=\E[37;40m:\
:Sb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m:\
:Sf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m:\
:tc=wsvt25-fixedglitches:
wsvt25-functionkeys|Fixed or added function keys F1-F12, insert, delete, home, end, PageUp, PageDown:\
:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:\
:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
:kI=\E[2~:kD=\E[3~:\
:kh=\E[7~:@7=\E[8~:\
:kP=\E[5~:kN=\E[6~:\
:tc=wsvt25-colour:
wsvt25-kbsdel|Note that the backspace key sends a DEL code:\
:kb=\177:\
:tc=wsvt25-functionkeys:
wsvt25apb|Finally, this is what I use:\
:tc=wsvt25-kbsdel:
--apb (Alan Barrett)