Skip to content

Commit c4bea64

Browse files
authored
Merge pull request #36 from python-tableformatter/header_colorama
Header colorama
2 parents e08937c + e7cc25c commit c4bea64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tableformatter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class TableColors(object):
293293
TEXT_COLOR_RED = fg(196)
294294
TEXT_COLOR_GREEN = fg(119)
295295
TEXT_COLOR_BLUE = fg(27)
296-
BG_COLOR_ROW = bg(234)
296+
BG_COLOR_ROW = bg(244)
297297
BG_RESET = attr('reset') # docs say bg(0) should do this but it doesn't work right
298298
BOLD = attr('bold')
299299
RESET = attr('reset')
@@ -309,7 +309,7 @@ class TableColors(object):
309309
BG_COLOR_ROW = Back.LIGHTBLACK_EX
310310
BG_RESET = Back.RESET
311311
BOLD = Style.BRIGHT
312-
RESET = Fore.RESET + Back.RESET
312+
RESET = Style.NORMAL + Fore.RESET + Back.RESET
313313
except ImportError:
314314
TEXT_COLOR_WHITE = ''
315315
TEXT_COLOR_YELLOW = ''
@@ -332,7 +332,7 @@ def set_color_library(cls, library_name: str) -> None:
332332
cls.TEXT_COLOR_RED = fg(196)
333333
cls.TEXT_COLOR_GREEN = fg(119)
334334
cls.TEXT_COLOR_BLUE = fg(27)
335-
cls.BG_COLOR_ROW = bg(234)
335+
cls.BG_COLOR_ROW = bg(244)
336336
cls.BG_RESET = attr('reset') # docs say bg(0) should do this but it doesn't work right
337337
cls.BOLD = attr('bold')
338338
cls.RESET = attr('reset')
@@ -347,7 +347,7 @@ def set_color_library(cls, library_name: str) -> None:
347347
cls.BG_COLOR_ROW = Back.LIGHTBLACK_EX
348348
cls.BG_RESET = Back.RESET
349349
cls.BOLD = Style.BRIGHT
350-
cls.RESET = Fore.RESET + Back.RESET
350+
cls.RESET = Style.NORMAL + Fore.RESET + Back.RESET
351351
else:
352352
cls.TEXT_COLOR_WHITE = ''
353353
cls.TEXT_COLOR_YELLOW = ''

0 commit comments

Comments
 (0)