summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-21 00:52:03 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-21 00:52:03 +0200
commit700b11e42d8045e8f4ef53588aab8e44dd9ac010 (patch)
treee913e8d5cd50701d6c95f4db6a11bb477744dbb3 /src/common.py
parent46705e18611cf49e5c0b45ce51ced221b0162167 (diff)
downloadpoezio-700b11e42d8045e8f4ef53588aab8e44dd9ac010.tar.gz
poezio-700b11e42d8045e8f4ef53588aab8e44dd9ac010.tar.bz2
poezio-700b11e42d8045e8f4ef53588aab8e44dd9ac010.tar.xz
poezio-700b11e42d8045e8f4ef53588aab8e44dd9ac010.zip
Handles 256 colors, easier theming and more flexible way to define colors
Doesn’t run yet if term doesn’t support 256 colors, I know (thus the branch "256")
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common.py b/src/common.py
index db750b30..11a09b93 100644
--- a/src/common.py
+++ b/src/common.py
@@ -186,11 +186,6 @@ def shell_split(st):
except ValueError:
return st.split(" ")
-def curses_color_pair(color):
- if color < 0:
- return curses.color_pair(-color) | curses.A_BOLD
- return curses.color_pair(color)
-
def replace_key_with_bound(key):
if config.has_option('bindings', key):
return config.get(key, key, 'bindings')