From 19b195eb1dee3f1179edc40bf88ff45859fc411e Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 14 Nov 2018 22:07:34 +0000 Subject: Stop supporting using ansi bold for brightening colors, support ansi background colors --- src/utils/consts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/utils/consts.py') diff --git a/src/utils/consts.py b/src/utils/consts.py index 7c57cd15..221c327b 100644 --- a/src/utils/consts.py +++ b/src/utils/consts.py @@ -8,6 +8,8 @@ class IRCColor(object): self.irc = irc self.ansi = ansi self.color_bold = color_bold + def ansi_background(self): + return self.ansi+10 COLOR_NAMES = {} COLOR_CODES = {} @@ -43,6 +45,7 @@ RESET = "\x0F" ANSI_FORMAT = "\033[%sm" ANSI_RESET = "\033[0m" -ANSI_COLOR_RESET = "\033[39m" +ANSI_FOREGROUND_RESET = "\033[39m" +ANSI_BACKGROUND_RESET = "\033[49m" ANSI_BOLD = "\033[1m" ANSI_BOLD_RESET = "\033[22m" -- cgit v1.3.1-10-gc9f91