Skip to content

Commit

Permalink
Fix problem with printer.py (#115)
Browse files Browse the repository at this point in the history
* Fix problem with printer

* Bump version for release
  • Loading branch information
MasloMaslane authored Sep 11, 2023
1 parent 5cc2d42 commit e5705ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sinol_make/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from sinol_make import util, oiejq

__version__ = "1.5.5"
__version__ = "1.5.6"

def configure_parsers():
parser = argparse.ArgumentParser(
Expand Down
3 changes: 1 addition & 2 deletions src/sinol_make/helpers/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e5705ef

Please sign in to comment.