Support transparent terminal
This commit is contained in:
parent
5aae4bb524
commit
97f91448f0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user