##// END OF EJS Templates
color: minor simplification of some terminfo setup code...
Pierre-Yves David -
r31069:cf2bc379 default
parent child Browse files
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 for key, val in ui.configitems('color')
207 if key.startswith('color.'))
208 color._terminfo_params.update((key[9:],
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