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