From e5705ef3f70a78f9d1fcea499bafeda213ee5cc3 Mon Sep 17 00:00:00 2001 From: Mateusz Masiarz Date: Mon, 11 Sep 2023 22:05:35 +0200 Subject: [PATCH] Fix problem with `printer.py` (#115) * Fix problem with printer * Bump version for release --- src/sinol_make/__init__.py | 2 +- src/sinol_make/helpers/printer.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sinol_make/__init__.py b/src/sinol_make/__init__.py index ab133f2e..933c60f0 100644 --- a/src/sinol_make/__init__.py +++ b/src/sinol_make/__init__.py @@ -8,7 +8,7 @@ from sinol_make import util, oiejq -__version__ = "1.5.5" +__version__ = "1.5.6" def configure_parsers(): parser = argparse.ArgumentParser( diff --git a/src/sinol_make/helpers/printer.py b/src/sinol_make/helpers/printer.py index b0410a6e..0fb20645 100644 --- a/src/sinol_make/helpers/printer.py +++ b/src/sinol_make/helpers/printer.py @@ -57,7 +57,6 @@ def _printer(stdscr, run_event, func, *args, **kwargs): curses.init_pair(1, curses.COLOR_RED, -1) curses.init_pair(2, curses.COLOR_GREEN, -1) curses.init_pair(3, curses.COLOR_YELLOW, -1) - curses.init_pair(4, curses.A_DIM, -1) curr_row = 0 last_output = [] @@ -170,7 +169,7 @@ def _print_to_scr(scr, output, has_title): elif output[i + 1:i + 5] == '[93m': # Escape sequence for yellow. color = curses.color_pair(3) elif output[i + 1:i + 5] == '[90m': # Escape sequence for gray. - color = curses.color_pair(4) + color = curses.A_DIM else: color = curses.A_NORMAL i += 4 # Skip the escape sequence.