RGB not bold
authorVu Nhat Minh <vunhat_minh@dwango.co.jp>
Wed, 2 Jul 2014 08:51:30 +0000 (17:51 +0900)
committerVu Nhat Minh <vunhat_minh@dwango.co.jp>
Wed, 2 Jul 2014 08:51:30 +0000 (17:51 +0900)
rainbowstream/colors.py
rainbowstream/draw.py

index f3c7f85686f03cfd717c4354102d9aff6909a1f1..e221e7f5c0f9baf937c9b2eb7b25e90a32e4a0f4 100644 (file)
@@ -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
 
index d3cbc66d2d5a672e379b9082116695699aea6427..b0d5478bb6ed61b1b83f8104bcde90e41fe7cef9 100644 (file)
@@ -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]