From: Vu Nhat Minh Date: Wed, 2 Jul 2014 08:51:30 +0000 (+0900) Subject: RGB not bold X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9338484910bcee2a9fbe9f159b01f58a97b61752;p=rainbowstream.git RGB not bold --- diff --git a/rainbowstream/colors.py b/rainbowstream/colors.py index f3c7f85..e221e7f 100644 --- a/rainbowstream/colors.py +++ b/rainbowstream/colors.py @@ -20,10 +20,8 @@ def RGB(code): """ 256 colors supported """ - def inner(text, bold=True): + def inner(text): c = code - if bold: - c = "1;%s" % c return "\033[38;5;%sm%s\033[0m" % (c, text) return inner diff --git a/rainbowstream/draw.py b/rainbowstream/draw.py index d3cbc66..b0d5478 100644 --- a/rainbowstream/draw.py +++ b/rainbowstream/draw.py @@ -22,7 +22,7 @@ def color_func(func_name): """ pure = func_name.encode('utf8') if pure.startswith('RGB_') and pure[4:].isdigit(): - return RGB(int(pure[4:]) + return RGB(int(pure[4:])) return globals()[pure]