Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: dog - man's best friend.
Date: Sat, 25 Feb 2012 21:21:20
Message-Id: 87boomd311.fsf@newsguy.com
In Reply to: Re: [gentoo-user] Re: dog - man's best friend. by Willie WY Wong
1 Willie WY Wong <wongwwy@××××××××××.org> writes:
2
3 > On Thu, Feb 23, 2012 at 06:24:29PM -0500, Penguin Lover Harry Putnam squawked:
4 >> > On Thu, Feb 23, 2012 at 08:42:00PM +0000, Alan Mackenzie wrote:
5 >> >
6 >> >> (a) using less, and have it take just 10 screen lines; (b) using cat etc.,
7 >> >> and have the interesting part scroll away.
8 >> >
9 >> > (c) use less -F and less will automatically exit if the entire file can fit
10 >> > on one screen. One can export LESS='-F' to have less always do the above.
11 >>
12 >> Maybe I'm seeing behavior that is not supposed to happen, but if I say
13 >> echo '## ONE LINE' > test
14 >>
15 >> And then say less -F test
16 >>
17 >> I do not get to see the one line. I don't think that's what Alan
18 >> was looking for is it?
19 >
20 > That is not supposed to happen. Is that in a X terminal or on the text
21 > console?
22
23 Real xterm in kde desktop (not konsole or any of the wannabes, just
24 plain xterm)
25
26 xterm -version
27 XTerm(276)
28
29 > If you `less test` and quit, does the content of the test file stay on
30 > screen or does it get cleared (I bet the former)? Try `less -XF test`
31 > in that case, and see if it helps.
32
33 (I guess you meant `latter'... not `former' eh?)
34
35 Here it is cleared... and yup `less -XF test' does as expected. less
36 doesn't start but the one line is shown.
37
38 (For the record: I have never used any of that and have no intention
39 or need to. I just saw the thread, tried it myself and saw what I
40 posted.)
41
42 Thanks for the input.
43
44 Oh, and this is all happening on a Debian (Testing) machine.