hgext/color.py
changeset 31068 27d3bc0c9093
parent 31067 a0bde5ec3a46
child 31069 cf2bc3792ef4
equal deleted inserted replaced
31067:a0bde5ec3a46 31068:27d3bc0c9093
   194 
   194 
   195 def _terminfosetup(ui, mode):
   195 def _terminfosetup(ui, mode):
   196     '''Initialize terminfo data and the terminal if we're in terminfo mode.'''
   196     '''Initialize terminfo data and the terminal if we're in terminfo mode.'''
   197 
   197 
   198     # If we failed to load curses, we go ahead and return.
   198     # If we failed to load curses, we go ahead and return.
   199     if not color._terminfo_params:
   199     if curses is None:
   200         return
   200         return
   201     # Otherwise, see what the config file says.
   201     # Otherwise, see what the config file says.
   202     if mode not in ('auto', 'terminfo'):
   202     if mode not in ('auto', 'terminfo'):
   203         return
   203         return
   204 
   204