diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2013-07-23 13:55:37 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2013-07-23 13:55:37 -0400 |
commit | 81647e8a7f59ff7165bbcc7a2a767b66a69d2c26 (patch) | |
tree | fa48b93e36b7113724272a4b4ab3e50a7eabff12 /pc.py | |
parent | e4ecc40711e80ddfa14ea1ffb2704a46bb8acdd4 (diff) |
add colors
Diffstat (limited to 'pc.py')
-rwxr-xr-x | pc.py | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 = "" |