hgext/color.py
changeset 17424 e7cfe3587ea4
parent 16743 38caf405d010
child 17806 dc7010ed0101
equal deleted inserted replaced
17406:fc14953e8e34 17424:e7cfe3587ea4
   497                         attr = mapcolor(int(sattr), attr)
   497                         attr = mapcolor(int(sattr), attr)
   498                 _kernel32.SetConsoleTextAttribute(stdout, attr)
   498                 _kernel32.SetConsoleTextAttribute(stdout, attr)
   499                 orig(m.group(2), **opts)
   499                 orig(m.group(2), **opts)
   500                 m = re.match(ansire, m.group(3))
   500                 m = re.match(ansire, m.group(3))
   501         finally:
   501         finally:
   502             # Explicity reset original attributes
   502             # Explicitly reset original attributes
   503             _kernel32.SetConsoleTextAttribute(stdout, origattr)
   503             _kernel32.SetConsoleTextAttribute(stdout, origattr)