tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Importing the apropos GSoC code and switching to mandoc(1) by default

On Sun, Feb 05, 2012 at 10:46:45AM +0200, Alan Barrett wrote:
> It highlights search terms using escape sequences, which interacts
> badly with pagers:

I've changed it to always use the redraw sequences like mandoc does too.
That was already the default when using -p.

> It prints more than a screenful of output by default.  I'd suggest
> either printing only one line per result by default, or piping
> through a pager if the output is a tty.

One line per result would remove the context of the match, which would
be a serious regeression in usefulness. Forcing the pager by default is
IMO a PITA, since all sane terminals have some form of scrollback
(xterm, wscons). We could limit the default output to 5, that should be
good enough for normal output.


Home | Main Index | Thread Index | Old Index