Show More
@@ -165,14 +165,14 b' def _render_effects(text, effects):' | |||||
165 | 'Wrap text in commands to turn on each effect.' |
|
165 | 'Wrap text in commands to turn on each effect.' | |
166 | if not text: |
|
166 | if not text: | |
167 | return text |
|
167 | return text | |
168 |
if |
|
168 | if _terminfo_params: | |
|
169 | start = ''.join(_effect_str(effect) | |||
|
170 | for effect in ['none'] + effects.split()) | |||
|
171 | stop = _effect_str('none') | |||
|
172 | else: | |||
169 | start = [str(_effects[e]) for e in ['none'] + effects.split()] |
|
173 | start = [str(_effects[e]) for e in ['none'] + effects.split()] | |
170 | start = '\033[' + ';'.join(start) + 'm' |
|
174 | start = '\033[' + ';'.join(start) + 'm' | |
171 | stop = '\033[' + str(_effects['none']) + 'm' |
|
175 | stop = '\033[' + str(_effects['none']) + 'm' | |
172 | else: |
|
|||
173 | start = ''.join(_effect_str(effect) |
|
|||
174 | for effect in ['none'] + effects.split()) |
|
|||
175 | stop = _effect_str('none') |
|
|||
176 | return ''.join([start, text, stop]) |
|
176 | return ''.join([start, text, stop]) | |
177 |
|
177 | |||
178 | w32effects = None |
|
178 | w32effects = None |
General Comments 0
You need to be logged in to leave comments.
Login now