From 2359c276567574becd7537a6ef10104babec7909 Mon Sep 17 00:00:00 2001 From: Vu Nhat Minh Date: Thu, 3 Jul 2014 18:17:34 +0900 Subject: [PATCH] notify --- rainbowstream/draw.py | 7 +++++++ rainbowstream/rainbow.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rainbowstream/draw.py b/rainbowstream/draw.py index a6f3e56..2fbe51d 100644 --- a/rainbowstream/draw.py +++ b/rainbowstream/draw.py @@ -31,6 +31,13 @@ def init_cycle(): g['cyc'] = init_cycle() +def notify_cycle(): + """ + Notify from rainbow + """ + g['cyc'] = init_cycle() + + def order_rainbow(s): """ Print a string with ordered color with each character diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 4b6f49f..d69f602 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -808,7 +808,7 @@ def theme(): c[nc] = new_config[nc] # Update db and reset colors db.theme_update(g['stuff']) - g['cyc'] = init_cycle() + notify_cycle() g['decorated_name'] = color_func( c['DECORATED_NAME'])( '[@' + g['original_name'] + ']: ') -- 2.25.1