From 81647e8a7f59ff7165bbcc7a2a767b66a69d2c26 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 23 Jul 2013 13:55:37 -0400 Subject: add colors --- pc.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'pc.py') 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 = "" -- cgit v1.2.3