##// END OF EJS Templates
color: show mode warning based on ui.formatted...
Xidorn Quan -
r30367:e193870e default
parent child Browse files
Show More
@@ -275,8 +275,8 b' def _modesetup(ui, coloropt):'
275
275
276 def modewarn():
276 def modewarn():
277 # only warn if color.mode was explicitly set and we're in
277 # only warn if color.mode was explicitly set and we're in
278 # an interactive terminal
278 # a formatted terminal
279 if mode == realmode and ui.interactive():
279 if mode == realmode and ui.formatted():
280 ui.warn(_('warning: failed to set color mode to %s\n') % mode)
280 ui.warn(_('warning: failed to set color mode to %s\n') % mode)
281
281
282 if realmode == 'win32':
282 if realmode == 'win32':
General Comments 0
You need to be logged in to leave comments. Login now