delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/06/13:59:16

X-Spam-Check-By: sourceware.org
Date: Tue, 6 Feb 2007 10:58:48 -0800
From: Gary Johnson <garyjohn AT spk DOT agilent DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: less doesn't recognize capabilities of remote terminal
Message-ID: <20070206185847.GA27464@suncomp2.spk.agilent.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20070205213405 DOT GA15739 AT suncomp2 DOT spk DOT agilent DOT com> <20070206032524 DOT GC15739 AT suncomp2 DOT spk DOT agilent DOT com> <ba40711f0702060748w4c0ddf0evea3731e13fa63d1a AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <ba40711f0702060748w4c0ddf0evea3731e13fa63d1a@mail.gmail.com>
User-Agent: Mutt/1.5.12 (2006-07-14)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2007-02-06, Lev Bishop wrote:
> On 2/5/07, Gary Johnson wrote:
> > On 2007-02-05, Gary Johnson wrote:
> > > I recently got Cygwin's sshd running on my Windows XP machine.  It
> > > seems to basically work fine, allowing me to login from any of
> > > several machines running various flavors of Unix.  Cygwin's less
> > > command, however, doesn't seem to recognize the capabilities of my
> > > remote terminal.
> > >
> > > For example, I often use ssh to login to my Windows machine from
> > > another machine running SunOS 5.8, using an xterm version "XFree86
> > > 4.1.0(165)".  When I use less to read a file, I get a warning
> > > message:
> > >
> > >     $ less /usr/share/doc/Cygwin/terminfo-5.5_20061104.README
> > >     WARNING: terminal is not fully functional
> > >     /usr/share/doc/Cygwin/terminfo-5.5_20061104.README  (press RETURN)
> >
> > Update:  If I simply set TERM=xterm (instead of xterm-16color), less
> > works fine:
> >
> >     TERM=xterm less /usr/share/doc/Cygwin/terminfo-5.5_20061104.README
> >
> > The difference between the two terminfo entries is:
> <snip>

> The cygwin-distributed less doesn't use terminfo. It was built with
> -ltermcap. The cygwin-distributed /etc/termcap doesn't have an entry
> for xterm-16color. Thus, less complains. Possible solutions inlclude
> adding an xterm-16color line to /etc/termcap (could just be an
> additional alias to xterm), or installing libncurses-devel,
> downloading the less source package and building it yourself (the
> build process will automatically use ncurses if it's available).

Thank you very much.  With that, it turned out to be an easy fix.  I 
read the termcap(3) and infocmp(1) man pages, then executed this in 
my HOME directory:

    TERM=xterm-16color infocmp -Cr > .termcap

Regards,
Gary

-- 
Gary Johnson                 | Agilent Technologies
garyjohn AT spk DOT agilent DOT com     | Wireless Division
                             | Spokane, Washington, USA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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