We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e75d6 commit c1cc1f6Copy full SHA for c1cc1f6
mypy/util.py
@@ -566,11 +566,12 @@ def initialize_unix_colors(self) -> bool:
566
under = curses.tigetstr('smul')
567
set_color = curses.tigetstr('setaf')
568
set_eseq = curses.tigetstr('cup')
569
+ normal = curses.tigetstr('sgr0')
570
- if not (bold and under and set_color and set_eseq):
571
+ if not (bold and under and set_color and set_eseq and normal):
572
return False
573
- self.NORMAL = curses.tigetstr('sgr0').decode()
574
+ self.NORMAL = normal.decode()
575
self.BOLD = bold.decode()
576
self.UNDER = under.decode()
577
self.DIM = parse_gray_color(set_eseq)
0 commit comments