Show More
@@ -202,14 +202,15 b' def _terminfosetup(ui, mode):' | |||
|
202 | 202 | if mode not in ('auto', 'terminfo'): |
|
203 | 203 | return |
|
204 | 204 | |
|
205 | color._terminfo_params.update((key[6:], (False, int(val), '')) | |
|
206 |
f |
|
|
207 | if key.startswith('color.')) | |
|
208 |
color._terminfo_params |
|
|
209 | (True, '', val.replace('\\E', '\x1b'))) | |
|
210 | for key, val in ui.configitems('color') | |
|
211 | if key.startswith('terminfo.')) | |
|
205 | for key, val in ui.configitems('color'): | |
|
206 | if key.startswith('color.'): | |
|
207 | newval = (False, int(val), '') | |
|
208 | color._terminfo_params[key[6:]] = newval | |
|
212 | 209 | |
|
210 | for key, val in ui.configitems('color'): | |
|
211 | if key.startswith('terminfo.'): | |
|
212 | newval = (True, '', val.replace('\\E', '\x1b')) | |
|
213 | color._terminfo_params[key[9:]] = newval | |
|
213 | 214 | try: |
|
214 | 215 | curses.setupterm() |
|
215 | 216 | except curses.error as e: |
General Comments 0
You need to be logged in to leave comments.
Login now