[PATCH] color: reset win32 console color in a finally block

Idan K idankk86 at gmail.com
Sat Apr 9 16:17:41 CDT 2011


On Sun, Apr 10, 2011 at 12:10 AM, Adrian Buehlmann <adrian at cadifra.com>wrote:

> This seems to look good, but I'm just wondering: What exceptions did you
> get that motivated this change?
>

I guess the most probable one would be a very nicely timed
KeyboardInterrupt.

I haven't actually checked if this makes a difference, maybe the console
gets its old color by some miraculous way.
It might be worth checking that first, although this can't hurt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110410/1ba86285/attachment.htm>


More information about the Mercurial-devel mailing list