From 97f91448f0ebef71d96a2dc73d81165e2bf5e6b5 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Fri, 27 Mar 2015 21:40:52 +0000 Subject: [PATCH] Support transparent terminal --- netwatch.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/netwatch.py b/netwatch.py index 70a126d..2bf8c34 100755 --- a/netwatch.py +++ b/netwatch.py @@ -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)