aboutsummaryrefslogtreecommitdiff
path: root/src/utils/consts.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-14 22:07:34 +0000
committerGravatar jesopo2018-11-14 22:07:34 +0000
commit19b195eb1dee3f1179edc40bf88ff45859fc411e (patch)
tree45cee861fc22b5916fbadcbcef15b2222a8b9314 /src/utils/consts.py
parent`if is_channel` should be `if channel`, `buffer.add_notice` doesn't take an (diff)
Stop supporting using ansi bold for brightening colors, support ansi background
colors
Diffstat (limited to 'src/utils/consts.py')
-rw-r--r--src/utils/consts.py5
1 files changed, 4 insertions, 1 deletions
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"