[PLUGIN] Lesslog -> run bzr log through less automatically

Michael Ellerman michael at ellerman.id.au
Sun Dec 11 20:28:18 GMT 2005


On Sun, 11 Dec 2005 05:58, Wouter Bolsterlee wrote:
> På Fri, Dec 09, 2005 at 09:10:36AM -0600, John Arbash Meinel skrev:
> > We should only invoke a pager if the number of lines are going to be
> > more than a screenful, and sys.stdout is a tty. You probably are doing
> > the latter, though I doubt you are doing the former. (You would have to
> > wrap up the output to figure out how long it is, etc).
>
> less -F does exactly this, as the manpage states:
> | -F or --quit-if-one-screen
> |     Causes less to automatically exit if the entire file can be displayed
> |     on the first screen.
> |

Hmm, doesn't seem to work ? ie. it exits if log is less than one screen, but 
it doesn't actually display _anything_.

cheers
 
-- 
Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051211/ecd17867/attachment.pgp 


More information about the bazaar mailing list