From owner-freebsd-stable Tue Jun 27 4:21:26 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.networkone.net (mail.networkone.net [209.144.112.75]) by hub.freebsd.org (Postfix) with SMTP id 8978F37BF8D for ; Tue, 27 Jun 2000 04:21:16 -0700 (PDT) (envelope-from reader@newsguy.com) Received: (qmail 4031 invoked from network); 27 Jun 2000 11:21:15 -0000 Received: from adsl-117-113.ln.networkone.net (HELO reader.ptw.com) (209.144.117.113) by mail.networkone.net with SMTP; 27 Jun 2000 11:21:15 -0000 Received: (from reader@localhost) by reader.ptw.com (8.9.3/8.9.3) id EAA23214; Tue, 27 Jun 2000 04:21:07 -0700 To: Andrew Johns Cc: freebsd-stable@FreeBSD.org Subject: Re: Annoying reverse hylighting in `more' 4.0-STsnap0624 References: <20000626195936.G232@parish> <20000626205828.I232@parish> <39582DD1.581CAB6D@kpi.com.au> From: Harry Putnam In-Reply-To: Andrew Johns's message of "Tue, 27 Jun 2000 14:30:09 +1000" Date: 27 Jun 2000 04:20:56 -0700 Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 123 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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