Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2000 20:54:05 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        Harry Putnam <reader@newsguy.com>
Cc:        Andrew Johns <johnsa@kpi.com.au>, freebsd-stable@freebsd.org
Subject:   Re: Annoying reverse hylighting in `more' 4.0-STsnap0624
Message-ID:  <20000627205405.E232@parish>
In-Reply-To: <m24s6fv087.fsf@reader.ptw.com>; from reader@newsguy.com on Tue, Jun 27, 2000 at 04:20:56AM -0700
References:  <m2pup4zea4.fsf@reader.ptw.com> <20000626195936.G232@parish> <m21z1kxmmr.fsf@reader.ptw.com> <20000626205828.I232@parish> <m2r99jvrbr.fsf@reader.ptw.com> <m2g0pzvnwi.fsf@reader.ptw.com> <39582DD1.581CAB6D@kpi.com.au> <m24s6fv087.fsf@reader.ptw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <johnsa@kpi.com.au> writes:
> 
> > See inline comments below.
> > 
> > Harry Putnam wrote:
> > > 
> > > Harry Putnam <reader@newsguy.com> 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 <cmd>')
> 
> 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




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