Re: bin/80256: /rescue/vi doesn't work without terminal database in /usr

From: Brian Candler <B.Candler_at_pobox.com>
Date: Sat, 18 Jun 2005 13:57:05 +0100
[from freebsd-current]
On Sat, Jun 18, 2005 at 12:48:04AM -0400, Garance A Drosehn wrote:
> >Yes, I'm aware of PR bin/80256, but that appears to stalled in
> >a state of limbo.
> 
> I've also been meaning to do something about that idea of a small
> termcap file.  I don't remember what the PR says, but someone had a
> good idea of generating the minimal termcap file from the standard
> one, and putting that in /rescue.  I have a few ideas of my own so
> the system would automatically pick up that minimal file.  Just a
> matter of finding the time to test it all...  :-)

I started that PR. Subsequently there was a short discussion off-list where
it turned out that Warner Losh had a compact termcap file which could be
committed - it's attached below. However nothing further happened.

Anybody care to commit it? I guess some rescue/Makefile magic needs updating
to install it in the right place.

Regards,

Brian.

attached mail follows:


From: Brian Candler <B.Candler_at_pobox.com>
Subject: Small termcap file
Date: Wed, 27 Apr 2005 20:30:44 +0100

> On Sat, Apr 23, 2005 at 02:39:48PM -0700, Tim Kientzle wrote:
> > I seem to recall that Warner (imp_at_) has a compact termcap file that he uses
> > with embedded projects.  That might be suitable here.
> 
> Hello,
> 
> Your name was mentioned in a discussion at PR bin/80256. We need a small
> termcap file which can be installed as /rescue/termcap. Do you have
> something which might be suitable?
> 
> I reckon it needs at least cons25, ansi, and perhaps xterm (if you are under
> X and running tip/cu via a serial cable to the target machine).

Yes.  I have something suitable.

Warner

vt200|vt220|vt220am|vt200am|dec-vt220|dec-vt200|dec vt200 series with jump scroll:\
	:_at_7=\E[4~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kh=\E[1~:\
	:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
	:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
	:ve=\E[?25h:vi=\E[?25l:k0_at_:im_at_:ei_at_:\
	:F1=\E[23~:F2=\E[24~:ic=\E[_at_:IC=\E[%d_at_:ec=\E[%dX:tc=vt102:
vt100|dec-vt100|vt100-am|vt100am|dec vt100:\
	:do=2\E[B:co#80:li#24:cl=50\E[H\E[J:sf=2*\ED:\
	:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
	:ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
	:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:\
	:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;24r\E[24;1H:\
	:if=/usr/share/tabset/vt100:nw=2\EE:ho=\E[H:\
	:as=2\E(0:ae=2\E(B:ac=llmmkkjjuuttvvwwqqxxnnpprr``aa:\
	:rs=\E>\E[?1;3;4;5l\E[?7;8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
	:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=\177:\
	:k0=\EOy:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOt:\
	:k6=\EOu:k7=\EOv:k8=\EOl:k9=\EOw:k;=\EOx:_at_8=\EOM:\
	:K1=\EOq:K2=\EOr:K3=\EOs:K4=\EOp:K5=\EOn:pt:sr=2*\EM:vt#3:xn:\
	:sc=2\E7:rc=2\E8:cs=5\E[%i%d;%dr:UP=2\E[%dA:DO=2\E[%dB:RI=2\E[%dC:\
	:LE=2\E[%dD:ct=2\E[3g:st=2\EH:ta=^I:ms:bl=^G:cr=^M:eo:it#8:ut:\
	:RA=\E[?7l:SA=\E[?7h:
vt102|dec-vt102-am|vt102am|vt100 w/adv. video:\
	:al=\E[L:dl=\E[M:im=\E[4h:ei=\E[4l:mi:dc=\E[P:\
	:AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:tc=vt100-np:
vt100-np|dec-vt100-np|vt100 with no padding (for psl games):\
	:do=\E[B:cl=\E[H\E[J:sf=\ED:as=\E(0:ae=\E(B:\
	:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:nw=\EE:\
	:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\
	:md=\E[1m:mr=\E[7m:mb=\E[5m:me=\E[m:sr=\EM:\
	:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:UP=\E[%dA:DO=\E[%dB:RI=\E[%dC:\
	:LE=\E[%dD:ct=\E[3g:st=\EH:tc=vt100-am:
xterm|vs100|xterm terminal emulator (X window system):\
	:li#65:\
	:kh=\EOH:_at_7=\EOF:kb=^H:kD=^?:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:km:\
	:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;65r\E[65;1H:\
	:rs=\E>\E[?1;3;4;5l\E[?7;8h:\
	:tc=vt220:
xterms|vs100s|xterm terminal emulator (small)(X window system):\
	:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;24r\E[24;1H:\
	:li#24:tc=xterm:
# for syscons
# common entry without semigraphics
cons25w|ansiw|ansi80x25-raw:\
	:al=\E[L:am:bs:NP:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:co#80:\
	:dc=\E[P:dl=\E[M:do=\E[B:bt=\E[Z:ho=\E[H:ic=\E[_at_:li#25:cb=\E[1K:\
	:ms:nd=\E[C:pt:rs=\E[x\E[m\Ec:so=\E[7m:se=\E[m:up=\E[A:\
	:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[x:sc=\E7:rc=\E8:\
	:k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:\
	:k9=\E[U:k;=\E[V:F1=\E[W:F2=\E[X:K2=\E[E:nw=\E[E:ec=\E[%dX:\
	:kb=^H:kh=\E[H:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:le=^H:eo:sf=\E[S:sr=\E[T:\
	:kN=\E[G:kP=\E[I:_at_7=\E[F:kI=\E[L:kD=\177:kB=\E[Z:\
	:IC=\E[%d_at_:DC=\E[%dP:SF=\E[%dS:SR=\E[%dT:AL=\E[%dL:DL=\E[%dM:\
	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:cv=\E[%i%dd:ch=\E[%i%d`:bw:\
	:mb=\E[5m:md=\E[1m:mh=\E[30;1m:mr=\E[7m:me=\E[m:bl=^G:ut:it#8:km:
cons25|ansis|ansi80x25:\
	:ac=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`^Da\260f\370g\361~\371.^Y-^Xh\261I^U0\333y\363z\362:\
	:tc=cons25w:
dosansi|ANSI.SYS standard crt:\
	:am:bs:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:co#80:\
	:do=\E[B:li#25:mi:nd=\E[C:\
	:se=\E[m:so=\E[7m:up=\E[A:us=\E[4m:ue=\E[m:\
	:md=\E[1m:mh=\E[m:mb=\E[5m:me=\E[m:\
	:kh=\EG:kb=^h:ku=\EH:kd=\EP:kl=\EK:kr=\EM:\
	:k1=\E;:k2=\E<:k3=\E=:k4=\E>:k5=\E?:\
	:k6=\E_at_:k7=\EA:k8=\EB:k9=\EC:k0=\ED:
network|dialup|du|dumb|un|unknown:\
	:am:co#80:do=^J:
ansi|any ansi terminal with pessimistic assumptions:\
	:co#80:li#24:cl=50\E[;H\E[2J:bs:am:cm=\E[%i%d;%dH:\
	:nd=\E[C:up=\E[A:ce=\E[K:ho=\E[H:pt:

attached mail follows:


From: Brian Candler <B.Candler_at_pobox.com>
Subject: Small termcap file
Date: Wed, 27 Apr 2005 20:30:44 +0100

> On Sat, Apr 23, 2005 at 02:39:48PM -0700, Tim Kientzle wrote:
> > I seem to recall that Warner (imp_at_) has a compact termcap file that he uses
> > with embedded projects.  That might be suitable here.
> 
> Hello,
> 
> Your name was mentioned in a discussion at PR bin/80256. We need a small
> termcap file which can be installed as /rescue/termcap. Do you have
> something which might be suitable?
> 
> I reckon it needs at least cons25, ansi, and perhaps xterm (if you are under
> X and running tip/cu via a serial cable to the target machine).

BTW, the one I gave you also has vt200/vt100/vt102 and friends in it
because those are very popular emulations.  xterm for when you're
logged into the serial port via an X terminal, and cons25* for the
console.  Oh, and dosansi and ansi for the brave.  I think it is a
reasonable thing to install.  It is only 3k.  There's a
/etc/termcap.small also which is just under 8k which also wouldn't be
bad.

Warner
Received on Sat Jun 18 2005 - 10:57:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:37 UTC