Mail Archives: cygwin/2001/09/18/13:27:08
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 DOT Gardian AT LEIBINGER DOT com]
Sent: Tuesday, September 18, 2001 10:14 AM
To: cygwin AT cygwin DOT 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/
- Raw text -