delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/26/08:54:12

From: bzinger AT iname DOT com (Micheal A. Benzinger)
Subject: Re: help using Vim with gnuwin32 tools?
26 Oct 1997 08:54:12 -0800 :
Message-ID: <3.0.3.32.19971026104131.009199d0.cygnus.gnu-win32@pop.flash.net>
References: bzinger AT iname DOT com (Micheal A. Benzinger)
Mime-Version: 1.0
To: John Cook <john DOT cook AT kla-tencor DOT com>, "'gnuwin32'" <gnu-win32 AT cygnus DOT com>

Hi John and the rest of the group,

Well, you can all ignore my previous two mail messages.
After sending the last message it finally dawned on me
what screen.c was trying to accomplish.  I then remembered
that I had doctored the 'md', 'so', etc. codes to produce
color for less, man, etc.  I did a little more digging and
have finally diagnosed the problem.  The termcap implementation
I am using is termcap-1.3, the GNU implementation.  It does
not handle the "%p1" format command that is supposed to
essentially ignore the first argument.  That means when a call
was made to tgoto with the AF code of "\E[3%p1%dm" and 0 and 4
as arguments, the resulting string from tgoto would be
"\E[314m" which the terminal does not understand.  I modified
the code in the termcap, which by the way is distributed with
termcap-1.3, to remove the trailing 1 from the push command.
Low and behold, the color high lighting started to work.

Bottom line for all this, VIM 5.0p works just fine in console
mode, color high-lighting and all.  The problem lies in tgoto.
I am not certain at his point what course of action to take.
Anybody out there have more knowledge of termcap than I do
who can educate me about what to do?  I have O'Reilly and
Associates' book "termcap & terminfo".  The AF command is not
documented in this book.  The %p1 command is poorly documented
at best.  The info files for GNU's termcap-1.3 does not have
any more information either.

Thanks in advance,

Mike Benzinger

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019