summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-13 22:26:05 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-13 22:26:05 +0100
commit1a058c3579fe31e82f5370ff6fee629375dbbb2b (patch)
treee0ee41e465fbbac036280875e4d498cfab1632c7 /src/common.py
parentad7e9b749d509ccbb1c1676491e86b7b812b0298 (diff)
downloadpoezio-1a058c3579fe31e82f5370ff6fee629375dbbb2b.tar.gz
poezio-1a058c3579fe31e82f5370ff6fee629375dbbb2b.tar.bz2
poezio-1a058c3579fe31e82f5370ff6fee629375dbbb2b.tar.xz
poezio-1a058c3579fe31e82f5370ff6fee629375dbbb2b.zip
Make it possible to define bold in the theme files
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)