On Thu, Feb 27, 2003 at 11:39:33PM -0500, Jeremy Schneider wrote:
> Hi, newbie issue here:
> 
> I rsh from a Cygwin bash shell window on a windows box to a Gentoo box.  
> The value of $TERM is "cygwin".  When I attempt to vi a file, I get, 
> "cygwin: Unknown terminal type".
> 
> My googling (so sue me, Google(tm)) reveals that if I set my TERM variable 
> to "linux", things work better.  For example, see 
> http://www.cygwin.com/ml/cygwin/2000-06/msg00412.html.  The operative word 
> here is "better".  It doesn't work quite right.  But a possibly more 
> informative post 
> (http://sources.redhat.com/ml/cygwin/2000-08/msg00781.html) talks about 
> adding knowledge of the cygwin terminal type to the terminfo system.
> 
> But doesn't Gentoo use terminfo?  I see that there is a terminfo entry for 
> the cygwin terminal in /usr/share/terminfo/c/cygwin.  But there is also a 
> linux terminal definition in /usr/share/terminfo/l/linux.  Why is linux OK, 
> but cygwin is not recognized?  As I looked more, I saw that there is a 
> termcap entry for linux, but not for cygwin, so it seems like Gentoo is 
> using termcap, not terminfo.  Is that right?  If so, why?
> 
> I located a termcap entry for cygwin 
> (http://mail-index.netbsd.org/netbsd-bugs/2000/09/19/0001.html), and added 
> that to /etc/termcap, and lo and behold, it works!  Yahoo!
> 
> What's going on here?  Isn't it better to use terminfo rather than termcap? 
> How do I make it use terminfo?  Do I need to specify a USE variable and 
> recompile?  If so, which one?
> 
> Thanks much for your patience and help.
> 
> -Jeremy

Jeremy,

What version of vi are you using?  (might be nvi, elvis, vim)  I
don't know if any USE variable settings, but vims should compile
with terminfo support rather than termcap if it is available.

    - richard

-- 
Richard Kilgore
[EMAIL PROTECTED]

--
[EMAIL PROTECTED] mailing list

Reply via email to