X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=blobdiff_plain;f=lightcards%2Fdisplay.py;h=46b5314292e2ddd76d5e8776a1b6fbf51e457235;hp=a130728e703776f8ee1d5b62ccad9454886da353;hb=a54a3718554a036542d6b0c010037ccec4f544d7;hpb=d0ab8048174d27d62fe613c588de1c76a54b2ff5 diff --git a/lightcards/display.py b/lightcards/display.py index a130728..46b5314 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -21,9 +21,10 @@ class Display: self.win = stdscr (mlines, mcols) = self.win.getmaxyx() curses.curs_set(0) # Hide cursor - curses.init_pair(1, curses.COLOR_CYAN, 0) - curses.init_pair(2, curses.COLOR_RED, 0) - curses.init_pair(3, curses.COLOR_YELLOW, 0) + curses.use_default_colors() # Allow transparency + curses.init_pair(1, curses.COLOR_CYAN, -1) + curses.init_pair(2, curses.COLOR_RED, -1) + curses.init_pair(3, curses.COLOR_YELLOW, -1) (self.main_win, self.main_panel) = self.panel_create(mlines, mcols) self.menu_init()