hgext/color.py
branchstable
changeset 14989 9e9d4a762586
parent 14769 9adce4b38ed1
child 15048 2f0a3977c939
equal deleted inserted replaced
14988:e6730f9e13bc 14989:9e9d4a762586
   178             realmode = 'win32'
   178             realmode = 'win32'
   179         else:
   179         else:
   180             realmode = 'ansi'
   180             realmode = 'ansi'
   181 
   181 
   182     if realmode == 'win32':
   182     if realmode == 'win32':
       
   183         _terminfo_params = {}
   183         if not w32effects:
   184         if not w32effects:
   184             if mode == 'win32':
   185             if mode == 'win32':
   185                 # only warn if color.mode is explicitly set to win32
   186                 # only warn if color.mode is explicitly set to win32
   186                 ui.warn(_('warning: failed to set color mode to %s\n') % mode)
   187                 ui.warn(_('warning: failed to set color mode to %s\n') % mode)
   187             return None
   188             return None