delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/18/13:19:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <4052AC502903D411AD1200508B2C0C100280A9D5@EXCHANGE>
From: "Gardian, Milan" <Milan DOT Gardian AT LEIBINGER DOT com>
To: cygwin AT cygwin DOT com
Subject: Behaviour of less
Date: Tue, 18 Sep 2001 19:14:21 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

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/

- Raw text -


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