equal
deleted
inserted
replaced
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 |