Commit d79ac17d authored by Fjen Undso's avatar Fjen Undso
Browse files

c.py: initialize colors

parent c6b1b102
......@@ -222,6 +222,12 @@ def main(stdscr):
stdscr.clear()
# hide cursor
curses.curs_set(0)
# init colors
curses.start_color()
curses.use_default_colors()
curses.init_pair(curses.COLOR_RED, curses.COLOR_RED, curses.COLOR_WHITE)
curses.init_pair(curses.COLOR_GREEN, curses.COLOR_GREEN, curses.COLOR_WHITE)
curses.init_pair(curses.COLOR_BLUE, curses.COLOR_BLUE, curses.COLOR_WHITE)
# logging
logger = logging.getLogger(__name__)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment