##// END OF EJS Templates
color: handle more Windows console errors...
Steve Borho -
r12065:a8b1cb0b default
parent child Browse files
Show More
@@ -254,8 +254,10 b' try:'
254 'inverse': win32c.COMMON_LVB_REVERSE_VIDEO, # double-byte charsets only
254 'inverse': win32c.COMMON_LVB_REVERSE_VIDEO, # double-byte charsets only
255 }
255 }
256
256
257 try:
257 stdout = win32c.GetStdHandle(win32c.STD_OUTPUT_HANDLE)
258 stdout = win32c.GetStdHandle(win32c.STD_OUTPUT_HANDLE)
258 try:
259 if stdout is None:
260 raise ImportError()
259 origattr = stdout.GetConsoleScreenBufferInfo()['Attributes']
261 origattr = stdout.GetConsoleScreenBufferInfo()['Attributes']
260 except pywintypes.error:
262 except pywintypes.error:
261 # stdout may be defined but not support
263 # stdout may be defined but not support
General Comments 0
You need to be logged in to leave comments. Login now