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

Martin Pool mbp at sourcefrog.net
Mon Dec 12 06:16:17 GMT 2005


On 11 Dec 2005, Michael Ellerman <michael at ellerman.id.au> wrote:
> 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_.

It works for me, e.g.

  date | less -F

prints just one line.  Perhaps you have $LESS set to something that's
interfering with it?

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051212/5cad84ed/attachment.pgp 


More information about the bazaar mailing list