"""
colors_shuffle = [globals()[i.encode('utf8')]
if not i.startswith('term_')
- else term_color(int(i[4:]))
+ else term_color(int(i[5:]))
for i in c['CYCLE_COLOR']]
return itertools.cycle(colors_shuffle)
g['cyc'] = init_cycle()
Call color function base on name
"""
pure = func_name.encode('utf8')
- if pure.startswith('term_') and pure[4:].isdigit():
- return term_color(int(pure[4:]))
+ if pure.startswith('term_') and pure[5:].isdigit():
+ return term_color(int(pure[5:]))
return globals()[pure]