Skip to content

Commit e5705ef

Browse files
authored
Fix problem with printer.py (#115)
* Fix problem with printer * Bump version for release
1 parent 5cc2d42 commit e5705ef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/sinol_make/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from sinol_make import util, oiejq
1010

11-
__version__ = "1.5.5"
11+
__version__ = "1.5.6"
1212

1313
def configure_parsers():
1414
parser = argparse.ArgumentParser(

src/sinol_make/helpers/printer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def _printer(stdscr, run_event, func, *args, **kwargs):
5757
curses.init_pair(1, curses.COLOR_RED, -1)
5858
curses.init_pair(2, curses.COLOR_GREEN, -1)
5959
curses.init_pair(3, curses.COLOR_YELLOW, -1)
60-
curses.init_pair(4, curses.A_DIM, -1)
6160

6261
curr_row = 0
6362
last_output = []
@@ -170,7 +169,7 @@ def _print_to_scr(scr, output, has_title):
170169
elif output[i + 1:i + 5] == '[93m': # Escape sequence for yellow.
171170
color = curses.color_pair(3)
172171
elif output[i + 1:i + 5] == '[90m': # Escape sequence for gray.
173-
color = curses.color_pair(4)
172+
color = curses.A_DIM
174173
else:
175174
color = curses.A_NORMAL
176175
i += 4 # Skip the escape sequence.

0 commit comments

Comments
 (0)