##// END OF EJS Templates
color: clarify name of an argument of 'win32print'...
Pierre-Yves David -
r31088:75c4aafe default
parent child Browse files
Show More
@@ -288,7 +288,7 b" if pycompat.osname == 'nt':"
288 288 ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)',
289 289 re.MULTILINE | re.DOTALL)
290 290
291 def win32print(text, orig, **opts):
291 def win32print(text, writefunc, **opts):
292 292 label = opts.get('label', '')
293 293 attr = origattr
294 294
@@ -325,7 +325,7 b" if pycompat.osname == 'nt':"
325 325 if sattr:
326 326 attr = mapcolor(int(sattr), attr)
327 327 _kernel32.SetConsoleTextAttribute(stdout, attr)
328 orig(m.group(2), **opts)
328 writefunc(m.group(2), **opts)
329 329 m = re.match(ansire, m.group(3))
330 330 finally:
331 331 # Explicitly reset original attributes
General Comments 0
You need to be logged in to leave comments. Login now