less problem

Rob Landley rob at landley.net
Wed Jan 17 17:39:12 UTC 2007


On Tuesday 16 January 2007 12:03 pm, Dirk Clemens wrote:
> I have found a ,less' problem while using
> bb 1.3.1 under mips:
> 
> I use a terminal with about 50 lines.
> # less a_file
> works fine and uses the whole terminal height.
> 
> But
> # less <same_file
> uses only the top 24 lines (23 text + 1 status line).

Because stdin isn't connected to a tty, so it can't figure out how big your 
terminal is.

It should be looking at _stdout_, not stdin.

Rob
-- 
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery



More information about the busybox mailing list