On Mon, Mar 3, 2008 Johannes Sixt wrote:
>
>  Yes, it's interesting. But I wonder if this also works if output goes to
>  $PAGER.

If output is going to $PAGER, isatty() returns false, so the patch
just passes the control codes on unmodified.

My pager doesn't support ANSI control codes. That's okay, though,
because the default git configuration does not generate control codes
when isatty() returns false, and I get control-code-free (and also
colourless) output in my pager.

Peter Harris

Reply via email to