Date: 27 Jun 2000 04:20:56 -0700 From: Harry Putnam <reader@newsguy.com> To: Andrew Johns <johnsa@kpi.com.au> Cc: freebsd-stable@FreeBSD.org Subject: Re: Annoying reverse hylighting in `more' 4.0-STsnap0624 Message-ID: <m24s6fv087.fsf@reader.ptw.com> In-Reply-To: Andrew Johns's message of "Tue, 27 Jun 2000 14:30:09 %2B1000" 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m24s6fv087.fsf>