From ff061d1398c33b63df591c1a653f9df32e4e202d Mon Sep 17 00:00:00 2001 From: turbocrime Date: Fri, 1 Mar 2024 13:45:14 -0800 Subject: [PATCH] be normal --- glances/outputs/glances_curses.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/glances/outputs/glances_curses.py b/glances/outputs/glances_curses.py index 0333407c..41b1fa13 100644 --- a/glances/outputs/glances_curses.py +++ b/glances/outputs/glances_curses.py @@ -260,17 +260,17 @@ class _GlancesCurses(object): if self.is_theme('white'): # White theme: black ==> white - curses.init_pair(1, curses.COLOR_BLACK, -1) + curses.init_pair(1, -1, -1) else: - curses.init_pair(1, curses.COLOR_WHITE, -1) + curses.init_pair(1, -1, -1) if self.args.disable_bg: curses.init_pair(2, curses.COLOR_RED, -1) curses.init_pair(3, curses.COLOR_GREEN, -1) curses.init_pair(5, curses.COLOR_MAGENTA, -1) else: - curses.init_pair(2, curses.COLOR_WHITE, curses.COLOR_RED) - curses.init_pair(3, curses.COLOR_WHITE, curses.COLOR_GREEN) - curses.init_pair(5, curses.COLOR_WHITE, curses.COLOR_MAGENTA) + curses.init_pair(2, -1, curses.COLOR_RED) + curses.init_pair(3, -1, curses.COLOR_GREEN) + curses.init_pair(5, -1, curses.COLOR_MAGENTA) curses.init_pair(4, curses.COLOR_BLUE, -1) curses.init_pair(6, curses.COLOR_RED, -1) curses.init_pair(7, curses.COLOR_GREEN, -1) @@ -301,14 +301,14 @@ class _GlancesCurses(object): curses.init_pair(i + 9, colors_list[i], -1) except Exception: if self.is_theme('white'): - curses.init_pair(i + 9, curses.COLOR_BLACK, -1) + curses.init_pair(i + 9, -1, -1) else: - curses.init_pair(i + 9, curses.COLOR_WHITE, -1) + curses.init_pair(i + 9, -1, -1) self.filter_color = curses.color_pair(9) | A_BOLD self.selected_color = curses.color_pair(10) | A_BOLD # Define separator line style curses.init_color(11, 500, 500, 500) - curses.init_pair(11, curses.COLOR_BLACK, -1) + curses.init_pair(11, -1, -1) self.separator = curses.color_pair(11) else: @@ -329,7 +329,7 @@ class _GlancesCurses(object): self.ifINFO_color = A_BOLD self.filter_color = A_BOLD self.selected_color = A_BOLD - self.separator = curses.COLOR_BLACK + self.separator = -1 # Define the colors list (hash table) for stats self.colors_list = {