Commit cb5fc898 authored by Mathieu Giraud's avatar Mathieu Giraud

src/should.py: more portable colors for light backgrounds

Closes #35.
parent 9e77bd0c
......@@ -173,16 +173,16 @@ class ANSI:
def color(col, text, colorize = True):
if not colorize:
return text
return CSIm % ANSI.BRIGHT + CSIm % col + text + CSIm % ANSI.RESET
return CSIm % col + text + CSIm % ANSI.RESET
STATUS_COLORS = {
None: ANSI.BLUE,
None: ANSI.CYAN,
False: ANSI.RED,
True: ANSI.GREEN,
SKIP: ANSI.BLUE,
TODO: ANSI.BLUE,
SKIP: ANSI.CYAN,
TODO: ANSI.CYAN,
TODO_PASSED: ANSI.RED,
ALLOW_FAILED: ANSI.BLUE,
ALLOW_FAILED: ANSI.CYAN,
}
# Modifier parser
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment