This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]