pager and stderr

Bryan O'Sullivan bos at serpentine.com
Fri Nov 20 15:13:45 CST 2015


On Fri, Nov 20, 2015 at 4:02 PM, Durham Goode <durham at fb.com> wrote:

> If stderr didn't go to the pager, wouldn't it just get written out on top
> of the pager's output?  Like, if we ran 'hg log' and it encountered an
> exception after having filled a page with text, would the exception get
> dumped to stderr mess up the existing pager output?
>

Yes, it would cause the existing output to be overwritten in some way,
which typically you can clear by tapping ^L (at the cost of losing the
traceback).

I guess I could add a grotesque hack to the pager extension and USR1
handler that would write the USR1 traceback directly to the "real" stderr
if it exists. Ugh, right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20151120/f4ab0b29/attachment.html>


More information about the Mercurial-devel mailing list