Comments
Patch
@@ -309,10 +309,19 @@ def render_effects(text, effects):
def extstyles():
for name, ext in extensions.extensions():
_styles.update(getattr(ext, 'colortable', {}))
+def valideffect(effect):
+ 'Determine if the effect is valid or not.'
+ good = False
+ if not _terminfo_params and effect in _effects:
+ good = True
+ elif effect in _terminfo_params or effect[:-11] in _terminfo_params:
+ good = True
+ return good
+
def configstyles(ui):
for status, cfgeffects in ui.configitems('color'):
if '.' not in status or status.startswith('color.'):
continue
cfgeffects = ui.configlist('color', status)