Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <2C08D4EECBDED41184BB00D0B74733420473F093@cf-bay-exch-03.cacheflow.com>
From: "Karr, David" <david.karr@cacheflow.com>
To: cygwin@cygwin.com
Subject: RE: Behaviour of less
Date: Tue, 18 Sep 2001 10:28:56 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-2"

Did you try "man less"?  In there, search for "termcap" and "environment"
for everything you need to know to set this up.

-----Original Message-----
From: Gardian, Milan [mailto:Milan.Gardian@LEIBINGER.com]
Sent: Tuesday, September 18, 2001 10:14 AM
To: cygwin@cygwin.com
Subject: Behaviour of less


Hello,

I have the following behaviour of less command: it lists contents of the
specified file into terminal OK, but when I (q)uit it, the listed contents
disappears.

Example:
---
% less file
Hello world
This is a line
[END]
---

now I press 'q':
---
% less file

%
---

once again:
---
% less file

% less file
Hello world
This is a line
[END]
---

after pressing 'q':
---
% less file

% less file

%
---

Is this a 'normal' behaviour? Is there a way to disable this behaviour of
'less' command (cleaning of its output)? Or is this a problem with my Cygwin
installation?


My configuration:
=================
    OS: Win2k
Cygwin: 1.3.3-2 (latest)
  less: 358.3 (latest)
CYGWIN: (not defined)
  LESS: (not defined)

Please note that I have tried to define LESS environment variable:
  export LESS='--no-init' #alias -X
Afterwards less behaves almost the way I would like it to - no clearing of
output, but it has some strange side-effects, e.g. when going backwards and
forwards heavily the terminal buffer is incrementally filled, or when using
less in an empty window to display a file smaller than one page, empty lines
are prepended to the output, etc.

Could anybody help me with this?

Cheers,

	Milan

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

