summaryrefslogtreecommitdiff
path: root/pc.py
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-07-23 13:55:37 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-07-23 13:55:37 -0400
commit81647e8a7f59ff7165bbcc7a2a767b66a69d2c26 (patch)
treefa48b93e36b7113724272a4b4ab3e50a7eabff12 /pc.py
parente4ecc40711e80ddfa14ea1ffb2704a46bb8acdd4 (diff)
add colors
Diffstat (limited to 'pc.py')
-rwxr-xr-xpc.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pc.py b/pc.py
index 35da4fb..1a721d9 100755
--- a/pc.py
+++ b/pc.py
@@ -13,9 +13,19 @@ curses.noecho()
curses.cbreak()
curses.curs_set(0)
curses.start_color()
+screen.keypad(True);
+# default entry color
curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_CYAN)
-curses.init_pair(2, curses.COLOR_WHITE, curses.COLOR_RED)
+
+# default error color
+curses.init_pair(4, curses.COLOR_WHITE, curses.COLOR_RED)
+
+# current entry color
+curses.init_pair(3, curses.COLOR_WHITE, curses.COLOR_BLUE)
+
+# line number color, invert of entry
+curses.init_pair(2, curses.COLOR_CYAN, curses.COLOR_WHITE)
# our stdin input
input_buffer = ""