Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jun 2005 13:57:05 +0100
From:      Brian Candler <B.Candler@pobox.com>
To:        Garance A Drosehn <gad@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org, FreeBSD-gnats-submit@freebsd.org, Steve Kargl <sgk@troutmask.apl.washington.edu>
Subject:   Re: bin/80256: /rescue/vi doesn't work without terminal database in /usr
Message-ID:  <20050618125705.GA721@uk.tiscali.com>
In-Reply-To: <p06210210bed954d40be5@[128.113.24.47]>
References:  <20050617211950.GA41720@troutmask.apl.washington.edu> <p06210210bed954d40be5@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help

--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

[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.

--GvXjxJ+pjyke8COw
Content-Type: message/rfc822
Content-Disposition: inline

Return-path: <b.candler@pobox.com>
Envelope-to: lists@localhost
Delivery-date: Sat, 18 Jun 2005 13:54:07 +0100
Received: from brian by billdog.local.linnet.org with local (Exim 4.50
	(FreeBSD)) id 1Djcpr-0000CU-4z
	for lists@localhost; Sat, 18 Jun 2005 13:54:07 +0100
Received: from localhost ([127.0.0.1])
	by billdog.local.linnet.org with esmtp (Exim 4.43 (FreeBSD))
	id 1DQsxR-0000IW-8v
	for brian@localhost; Wed, 27 Apr 2005 21:16:29 +0100
Received: from pop3.linnet.org by localhost with POP3 (fetchmail-6.2.5)
	for brian@localhost (single-drop); Wed, 27 Apr 2005 21:16:29 +0100 (BST)
Received: from [212.74.113.145] (helo=cheese.org)
	by mk-mx-3.b2b.uk.tiscali.com with esmtp (Exim 4.24)
	id 1DQsWe-000Euh-BY
	for brian@linnet.org; Wed, 27 Apr 2005 20:48:48 +0100
Received: from majesty.pobox.com ([208.210.124.70])
	by cheese.org with esmtp (Exim 4.43 (FreeBSD)) id 1DQsWm-000Nk0-9s
	for brian@cheese.org; Wed, 27 Apr 2005 20:48:58 +0100
Received: from majesty.pobox.com (localhost [127.0.0.1])
	by majesty.pobox.com (Postfix) with ESMTP id 4B03212801F
	for <brian@cheese.org>; Wed, 27 Apr 2005 15:49:27 -0400 (EDT)
Delivered-To: b.candler@pobox.com
Received: from harmony.village.org (rover.village.org [168.103.84.182])
	by majesty.pobox.com (Postfix) with ESMTP id 2CB7412CB4D
	for <B.Candler@pobox.com>; Wed, 27 Apr 2005 15:49:25 -0400 (EDT)
Received: from localhost (localhost.village.org [127.0.0.1])
	by harmony.village.org (8.13.3/8.13.1) with ESMTP id j3RJjku8089058;
	Wed, 27 Apr 2005 13:45:51 -0600 (MDT) (envelope-from imp@bsdimp.com)
Date: Wed, 27 Apr 2005 13:45:46 -0600 (MDT)
Message-Id: <20050427.134546.74663528.imp@bsdimp.com>
To: B.Candler@pobox.com
Cc: simon@freebsd.org, kientzle@freebsd.org
Subject: Re: Small termcap file
From: Warner Losh <imp@bsdimp.com>
In-Reply-To: <20050427193044.GA866@uk.tiscali.com>
References: <20050423205209.GH84120@zaphod.nitro.dk>
	<426AC0A4.4050004@freebsd.org>
	<20050427193044.GA866@uk.tiscali.com>
X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Wed_Apr_27_13:45:46_2005_920)--"
Content-Transfer-Encoding: 7bit
Resent-From: brian@uk.tiscali.com
Resent-Date: Sat, 18 Jun 2005 13:54:07 +0100
Resent-To: lists@localhost
Resent-Message-Id: <E1Djcpr-0000CU-4z@billdog.local.linnet.org>

----Next_Part(Wed_Apr_27_13:45:46_2005_920)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

From: Brian Candler <B.Candler@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@) 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

----Next_Part(Wed_Apr_27_13:45:46_2005_920)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=termcap

vt200|vt220|vt220am|vt200am|dec-vt220|dec-vt200|dec vt200 series with jump scroll:\
	:@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@:im@:ei@:\
	:F1=\E[23~:F2=\E[24~:ic=\E[@:IC=\E[%d@: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[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s100|xterm terminal emulator (X window system):\
	:li#65:\
	:kh=\EOH:@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[@: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:@7=\E[F:kI=\E[L:kD=\177:kB=\E[Z:\
	:IC=\E[%d@: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@: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:

----Next_Part(Wed_Apr_27_13:45:46_2005_920)----


--GvXjxJ+pjyke8COw
Content-Type: message/rfc822
Content-Disposition: inline

Return-path: <b.candler@pobox.com>
Envelope-to: lists@localhost
Delivery-date: Sat, 18 Jun 2005 13:54:07 +0100
Received: from brian by billdog.local.linnet.org with local (Exim 4.50
	(FreeBSD)) id 1Djcpr-0000CX-6E
	for lists@localhost; Sat, 18 Jun 2005 13:54:07 +0100
Received: from localhost ([127.0.0.1])
	by billdog.local.linnet.org with esmtp (Exim 4.43 (FreeBSD))
	id 1DQsxR-0000IW-Fu
	for brian@localhost; Wed, 27 Apr 2005 21:16:29 +0100
Received: from pop3.linnet.org by localhost with POP3 (fetchmail-6.2.5)
	for brian@localhost (single-drop); Wed, 27 Apr 2005 21:16:29 +0100 (BST)
Received: from [212.74.113.145] (helo=cheese.org)
	by mk-mx-1.b2b.uk.tiscali.com with esmtp (Exim 4.24)
	id 1DQsf9-000Bgf-Qi
	for brian@linnet.org; Wed, 27 Apr 2005 20:57:35 +0100
Received: from gold.pobox.com ([208.210.124.73])
	by cheese.org with esmtp (Exim 4.43 (FreeBSD)) id 1DQsfW-000NlM-8f
	for brian@cheese.org; Wed, 27 Apr 2005 20:57:58 +0100
Received: from gold.pobox.com (localhost [127.0.0.1])
	by gold.pobox.com (Postfix) with ESMTP id C3A94724D6
	for <brian@cheese.org>; Wed, 27 Apr 2005 15:57:32 -0400 (EDT)
Delivered-To: b.candler@pobox.com
Received: from harmony.village.org (rover.village.org [168.103.84.182])
	by gold.pobox.com (Postfix) with ESMTP id 87F0C724EE
	for <B.Candler@pobox.com>; Wed, 27 Apr 2005 15:57:32 -0400 (EDT)
Received: from localhost (localhost.village.org [127.0.0.1])
	by harmony.village.org (8.13.3/8.13.1) with ESMTP id j3RJtX3c089133;
	Wed, 27 Apr 2005 13:55:33 -0600 (MDT) (envelope-from imp@bsdimp.com)
Date: Wed, 27 Apr 2005 13:55:33 -0600 (MDT)
Message-Id: <20050427.135533.85323427.imp@bsdimp.com>
To: B.Candler@pobox.com
Cc: simon@freebsd.org, kientzle@freebsd.org
Subject: Re: Small termcap file
From: Warner Losh <imp@bsdimp.com>
In-Reply-To: <20050427193044.GA866@uk.tiscali.com>
References: <20050423205209.GH84120@zaphod.nitro.dk>
	<426AC0A4.4050004@freebsd.org>
	<20050427193044.GA866@uk.tiscali.com>
X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Resent-From: brian@uk.tiscali.com
Resent-Date: Sat, 18 Jun 2005 13:54:07 +0100
Resent-To: lists@localhost
Resent-Message-Id: <E1Djcpr-0000CX-6E@billdog.local.linnet.org>

From: Brian Candler <B.Candler@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@) 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



--GvXjxJ+pjyke8COw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050618125705.GA721>