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

Martin Pool mbp at sourcefrog.net
Mon Dec 12 07:33:41 GMT 2005


On 12 Dec 2005, Michael Ellerman <michael at ellerman.id.au> wrote:
> On Mon, 12 Dec 2005 00:16, Martin Pool wrote:
> > 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?
> 
> Weirdo, no idea why it's not working :?

Well, this does tell us that using less -F by default would not be so
good?

What kind of terminal are you using?

What if you just say "date|less", or try "less -E" or "less -FX"?

> ||/ Name           Version        Description
> +++-==============-==============-============================================
> ii  less           382-2          Pager program similar to more

I have the same version (from ubuntu).

-- 
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/78e8774c/attachment.pgp 


More information about the bazaar mailing list