Support transparent terminal

This commit is contained in:
Will Bradley 2015-03-27 21:40:52 +00:00
parent 5aae4bb524
commit 97f91448f0

View File

@ -108,9 +108,10 @@ class Pinger:
def __init__(self, stdscr):
# Initialize color pairs
curses.init_pair(1, curses.COLOR_RED, curses.COLOR_BLACK)
curses.init_pair(2, curses.COLOR_GREEN, curses.COLOR_BLACK)
curses.init_pair(3, curses.COLOR_WHITE, curses.COLOR_BLACK)
curses.use_default_colors()
curses.init_pair(1, curses.COLOR_RED, -1)
curses.init_pair(2, curses.COLOR_GREEN, -1)
curses.init_pair(3, curses.COLOR_WHITE, -1)
# Hide cursor
curses.curs_set(0)