From 8124f3a86a1a360bd80802507868796385fd2d15 Mon Sep 17 00:00:00 2001 From: Vu Nhat Minh Date: Thu, 3 Jul 2014 17:36:57 +0900 Subject: [PATCH] term --- rainbowstream/draw.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rainbowstream/draw.py b/rainbowstream/draw.py index d25a3c9..a6f3e56 100644 --- a/rainbowstream/draw.py +++ b/rainbowstream/draw.py @@ -25,7 +25,7 @@ def init_cycle(): """ 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() @@ -109,8 +109,8 @@ def color_func(func_name): 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] -- 2.25.1