From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 26 13:50:09 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA0F516A4CE for ; Tue, 26 Apr 2005 13:50:09 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B739C43D3F for ; Tue, 26 Apr 2005 13:50:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3QDo9FP088049 for ; Tue, 26 Apr 2005 13:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3QDo9EJ088048; Tue, 26 Apr 2005 13:50:09 GMT (envelope-from gnats) Date: Tue, 26 Apr 2005 13:50:09 GMT Message-Id: <200504261350.j3QDo9EJ088048@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Brian Candler Subject: Re: bin/80256: /rescue/vi doesn't work without terminal database in /usr X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Brian Candler List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 13:50:10 -0000 The following reply was made to PR bin/80256; it has been noted by GNATS. From: Brian Candler To: Tim Kientzle Cc: "Simon L. Nielsen" , FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/80256: /rescue/vi doesn't work without terminal database in /usr Date: Tue, 26 Apr 2005 14:44:15 +0100 --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 26, 2005 at 02:07:12PM +0100, Brian Candler wrote: > On Sat, Apr 23, 2005 at 02:39:48PM -0700, Tim Kientzle wrote: > > Looks good to me. Test it. If it works, let's commit it. > > Hmm, it doesn't. I will investigate further when I get a few minutes. Actually, it does; turns out my trimmed /rescue/termcap file was bad. The xterm-basic entry in /usr/share/misc/termcap has a superfluous trailing backslash at the end, and if you butt it up to another entry without a blank line, then that entry is broken. The /rescue/termcap I'm using is attached. It's under 4K, but no doubt it could be trimmed further. Do we actually need all the various combinations of consoles, or is cons25 sufficient? I already stripped out some of the more unusual ones like KOI8. Regards, Brian. --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=termcap # Fallback termcap for rescue distribution. Includes cons25 and friends, # xterm, and ansi only. 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: xterm|xterm-color|X11 terminal emulator:\ :ti@:te@:tc=xterm-xfree86: xterm-xfree86|XFree86 xterm:\ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\ :k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\ :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\ :kH=\EOF:@7=\EOF:kI=\E[2~:\ :kh=\EOH:*6=\EOF:kP=\E[5~:kN=\E[6~:\ :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:Km=\E[M:tc=xterm-basic: xterm-basic|xterm common (XFree86):\ :li#24:co#80:am:kn#12:km:mi:ms:xn:bl=^G:\ :is=\E[!p\E[?3;4l\E[4l\E>:rs=\E[!p\E[?3;4l\E[4l\E>:le=^H:\ :AL=\E[%dL:DL=\E[%dM:DC=\E[%dP:al=\E[L:dc=\E[P:dl=\E[M:\ :UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:\ :ho=\E[H:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:cs=\E[%i%d;%dr:\ :im=\E[4h:ei=\E[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=\E[=1S:vs=\E[=2S: # CP437 FreeBSD console with ACS support 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: cons25-m|ansis-mono|ansi80x25-mono:\ :pa@:Co@:AF@:AB@:AX@:op@:us=\E[4m:ue=\E[24m:tc=cons25: cons30|ansi80x30:\ :li#30:tc=cons25: cons30-m|ansi80x30-mono:\ :li#30:tc=cons25-m: cons43|ansi80x43:\ :li#43:tc=cons25: cons43-m|ansi80x43-mono:\ :li#43:tc=cons25-m: cons50|ansil|ansi80x50:\ :li#50:tc=cons25: cons50-m|ansil-mono|ansi80x50-mono:\ :li#50:tc=cons25-m: cons60|ansi80x60:\ :li#60:tc=cons25: cons60-m|ansi80x60-mono:\ :li#60:tc=cons25-m: # Syscons console with 132 characters (VESA modes) cons25-w|ansi132x25:\ :co#132:tc=cons25: cons30-w|ansi132x30:\ :co#132:tc=cons30: cons43-w|ansi132x43:\ :co#132:tc=cons43: cons50-w|ansil-w|ansi132x50:\ :co#132:tc=cons50: cons60-w|ansi132x60:\ :co#132:tc=cons60: # ISO 8859-1 FreeBSD console with ACS support cons25l1|cons25-iso8859-1:\ :ac=f\260g\261}\243+\253,\273i\247:\ :tc=cons25w: cons25l1-m|cons25-iso8859-1-mono:\ :pa@:Co@:AF@:AB@:AX@:op@:us=\E[4m:ue=\E[24m:tc=cons25l1: cons30l1|cons30-iso8859-1:\ :li#30:tc=cons25l1: cons30l1-m|cons30-iso8859-1-mono:\ :li#30:tc=cons25l1-m: cons43l1|cons43-iso8859-1:\ :li#43:tc=cons25l1: cons43l1-m|cons43-iso8859-1-mono:\ :li#43:tc=cons25l1-m: cons50l1|cons50-iso8859-1:\ :li#50:tc=cons25l1: cons50l1-m|cons50-iso8859-1-mono:\ :li#50:tc=cons25l1-m: cons60l1|cons60-iso8859-1:\ :li#60:tc=cons25l1: cons60l1-m|cons60-iso8859-1-mono:\ :li#60:tc=cons25l1-m: # 132x25 ISO 8859-1 FreeBSD console cons25l1-w|:cons25w-iso8859-1:\ :co#132:tc=cons25l1: cons30l1-w|cons30w-iso8859-1:\ :co#132:tc=cons30l1: cons43l1-w|cons43w-iso8859-1:\ :co#132:tc=cons43l1: cons50l1-w|cons50w-iso8859-1:\ :co#132:tc=cons50l1: cons60l1-w|cons60w-iso8859-1:\ :co#132:tc=cons60l1: --3MwIy2ne0vdjdPXF--