delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/09/12:24:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3918481B.3F041B5@veritas.com>
Date: Tue, 09 May 2000 10:17:15 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: problems with less
References: <7cbQ3cmppfB AT mike DOT franken DOT de> <uhfc7bxgi DOT fsf AT KONTIKI DOT cam DOT eu DOT citrix DOT com> <20000509120844 DOT A6339 AT cygnus DOT com>

Chris Faylor wrote:
> 
> On Tue, May 09, 2000 at 03:38:21PM +0100, John S Cooper wrote:
> >
> >I think the display problems I was having with `less' disappear when I do the
> >following:
> >
> >  1. Set TERM=cygwin rather than TERM=linux.
> >  2. Don't use `less -r' as an alias for `less'.
> >
> >Perhaps this is something for a README/FAQ?
> 
> So, if you don't go out of your way to use less in a non-standard way, it
> works fine.  That doesn't seem like FAQ material to me.

The man page for 'less' says '-r' causes the program to output ASCII
control characters found in a file as the control character rather than
a symbol sequence like '^A', etc.  This is a standard documented
feature.  What was missing in this case was an understanding of what
this means to the terminal emulator.  For instance, if a <CR> (^R) was
embedded in a line, the remainder of the line would overwrite its
beginning.  If there is a form feed (^L if I remember correctly), the
screen might be cleared (depending on the TERM type, of course).  And so
on.

I agree that this is not a FAQ item.  The feature is already
documented.  It just requires a little analysis and thought, to
understand the potential consequences.

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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