summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.py b/src/common.py
index f910892d..0940757e 100644
--- a/src/common.py
+++ b/src/common.py
@@ -205,3 +205,8 @@ def shell_split(string):
return ret
except ValueError:
return string.split()
+
+def curses_color_pair(color):
+ if color < 0:
+ return curses.color_pair(-color) | curses.A_BOLD
+ return curses.color_pair(color)