David Wilson wrote:
> Hi there,
>
> First and foremost, congratulations on an excellent product. It is rare
> to see an open source project so well built.
>
> In #svn today, I suggested the addition of a feature which provoked a
> little discussion, and it was suggested I post it here for
> consideration.
>
> Basically, in 99% of cases (and probably closer to 100% with
> Subversion) when stdout is connected to a terminal device and we are
> sending a large amount of output to stdout, there is a very high chance
> that we are going to flood the user's terminal.
>
> My basic idea is to test for something like the following or it's APR
> equivalent:
>
> (isatty(fileno(stdout)) && (pager = getenv("PAGER")) && *pager)
>
>
> If the condition succeeds, then use popen(3) (or the APR equivalent) to
> pipe our copious output to the user's preferred PAGER instead of
> directly to their screen.
After being initially shocked by the violation of Unix tradition, I
eventually came to think that *if* the user has set PAGER, then they
probably would like this feature.
So, I'm actually +1 on this idea.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 5 19:09:23 2004