X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Fcolors.py;h=bdbc4b44c14d6af7c4009af898b13ed3e86bd44f;hp=d3e55349e390787e218b307b01be471a74325453;hb=99cd1fba83efcd1dd6f01570ea79776b4e41f1cf;hpb=39b8e6b3486c527291e91838c9adf139a5c95af6 diff --git a/rainbowstream/colors.py b/rainbowstream/colors.py index d3e5534..bdbc4b4 100644 --- a/rainbowstream/colors.py +++ b/rainbowstream/colors.py @@ -6,7 +6,7 @@ def basic_color(code): c = code if bold: c = "1;%s" % c - return "\001\033[%sm\002%s\001\033[0m\002" % (c, text) + return "\033[%sm%s\033[0m" % (c, text) return inner @@ -16,7 +16,7 @@ def term_color(code): """ def inner(text): c = code - return "\001\033[38;5;%sm\002%s\001\033[0m\002" % (c, text) + return "\033[38;5;%sm%s\033[0m" % (c, text) return inner