[sclug] less not cooperating

ed ed at s5h.net
Thu Jul 26 19:35:28 UTC 2007

On Thu, 26 Jul 2007 20:00:41 +0100
Will Dickson <wrd at glaurung.demon.co.uk> wrote:

> I'm writing an application in a compiled language (java, if it
> matters). For reasons that are too boring to go into here, the app
> needs to print a large text file to the console such that the user
> can read through it. Since this particular piece of code knows that
> it's running in Linux, the obvious answer seemed to be, call out
> to /usr/bin/less and get it to do the work.
> Well, it prints the thing, but unfortunately it prints it all at
> once, without the interactive page breaks. Which is no good :-( I
> suspect I'm missing some kind of shell-fu.
> Anyone have any ideas?

/usr/bin/less --window=24

might help, dunno, I've never used this, but I imagine that less is not
reading the terminal environment correctly since the JRE is executing

The T1 to Radvision is toast because of Greedo.
AOL is woofing down a plate of peas.
:: http://www.s5h.net/ :: http://www.s5h.net/gpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.sclug.org.uk/pipermail/sclug/attachments/20070726/8da59b26/attachment.bin 

More information about the Sclug mailing list