From owner-freebsd-stable Tue Jun 27 12:59:24 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by hub.freebsd.org (Postfix) with ESMTP id E21F337BCA8 for ; Tue, 27 Jun 2000 12:59:15 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.85.169]) by mta03-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000627195910.FSLS290.mta03-svc.ntlworld.com@parish.my.domain>; Tue, 27 Jun 2000 20:59:10 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id UAA01277; Tue, 27 Jun 2000 20:54:05 +0100 (BST) (envelope-from mark) Date: Tue, 27 Jun 2000 20:54:05 +0100 From: Mark Ovens To: Harry Putnam Cc: Andrew Johns , freebsd-stable@freebsd.org Subject: Re: Annoying reverse hylighting in `more' 4.0-STsnap0624 Message-ID: <20000627205405.E232@parish> References: <20000626195936.G232@parish> <20000626205828.I232@parish> <39582DD1.581CAB6D@kpi.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from reader@newsguy.com on Tue, Jun 27, 2000 at 04:20:56AM -0700 Organization: Total lack of Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 27, 2000 at 04:20:56AM -0700, Harry Putnam wrote: > NOTE: Posted to freebsd-stable incase anyone else can see the error > > Andrew Johns writes: > > > See inline comments below. > > > > Harry Putnam wrote: > > > > > > Harry Putnam writes: > > > > [snip] > > > > > > > > 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:\ > > > > Make CERTAIN that the line above has no spaces and no end-of-line or > > carriage returns in it - it must all be on one line (although the terminal > > may wrap it for display purposes - beware of the difference) > > > > NOTE: I had to break the line for mail purposes. Also check that the VERY > > LAST character is the '\' after the ':' - there MUST NOT be any characters > > after the '\' else it will never work. > > > > Good luck this time perhaps... :) > > This is turning into a real exercise in scrutiny.. Studying the original > termcap compared to termcap.tmp (edited) I see no extraneous junk in there. > Although admittedly I'm not very experienced with this. > > Further this is not a huge issue, but very curious now as to what I'm > doing wrong here. > > Using `vim :2374 2382 list' to see all characters it looks ok but > still I get the same output when running `cap_mkdb'. Then my term cap > is trashed, so that trying to start emacs to view the file termcap > gives me .."terminal type "cons25" is not powerful enough to run > Emacs ....." > > And `man chmod' shows no highlighting whatever > > OK. `cp termcap-orig termcap; cap_mkdb termcap' > > Back to square one. Everything works as before. (White Reverse > video highlighting at `man ') > > So, in an effort to make sure I only replace: > :tc=cons25w: > > with: > :us=\E[40;34;1m:ue=\E[m:tc=cons25w: > > I tried using tools so as not to rely on my eyesight too much: > > # ed termcap-orig > 188977 > 2379p > :tc=cons25w: > 2379 s/:tc=cons25w/:us=\\\E[40;34;1m:ue=\\\E[m:tc=cons25w:/ > > 2379p > :us=\E[40;34;1m:ue=\E[m:tc=cons25w: > w termcap.tmp > 18999 > q > > # diff termcap-orig termcap.tmp > > 2379c2379 > < :tc=cons25w: > --- > > :us=\E[40;34;1m:ue=\E[m:tc=cons25w: > > > # cp termcap.tmp termcap > > Now running `cap_mkdb termcap' produces the same output: > > cap_mkdb: record not tc expanded: cons25|ansis|ansi80x25 > cap_mkdb: record not tc expanded: cons25-m|ansis-mono|ansi80x25-mono > cap_mkdb: record not tc expanded: cons30|ansi80x30 > cap_mkdb: record not tc expanded: cons30-m|ansi80x30-mono > cap_mkdb: record not tc expanded: cons43|ansi80x43 > cap_mkdb: record not tc expanded: cons43-m|ansi80x43-mono > cap_mkdb: record not tc expanded: cons50|ansil|ansi80x50 > cap_mkdb: record not tc expanded: cons50-m|ansil-mono|ansi80x50-mono > cap_mkdb: record not tc expanded: cons60|ansi80x60 > cap_mkdb: record not tc expanded: cons60-m|ansi80x60-mono > I've never seen those messages before, but they suggest that you've removed the cons25w entry (the one above cons25). ``tc=cons25w'' means, effectively, set everything else to be the same as cons25w. As others have pointed out, termcap is very sensitive to trailing whitespace. I've sent you my termcap file in a private e-mail. That definitely works, see what you get with it (you'll need to run cap_mkdb on it). You should see ``mode file ....'' at the end of the SYNOPSIS line in the chmod manpage in yellow. HTH > Which trashes termcap : > # emacs termcap > > emacs: Terminal type "cons25" is not powerful enough to run Emacs. > It lacks the ability to position the cursor. > If that is not the actual type of terminal you have, > use the Bourne shell command `TERM=... export TERM' (C-shell: > `setenv TERM ...') to specify the correct type. It may be necessary > to do `unset TERMCAP' (C-shell: `unsetenv TERMCAP') as well. > > > > > > > > > > > > > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message