File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ def termattrs() -> int: ...
344344def termname () -> bytes : ...
345345def tigetflag (__capname : str ) -> int : ...
346346def tigetnum (__capname : str ) -> int : ...
347- def tigetstr (__capname : str ) -> bytes : ...
347+ def tigetstr (__capname : str ) -> bytes | None : ...
348348def tparm (
349349 __str : bytes ,
350350 __i1 : int = ...,
Original file line number Diff line number Diff line change @@ -566,11 +566,12 @@ def initialize_unix_colors(self) -> bool:
566566 under = curses .tigetstr ('smul' )
567567 set_color = curses .tigetstr ('setaf' )
568568 set_eseq = curses .tigetstr ('cup' )
569+ normal = curses .tigetstr ('sgr0' )
569570
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 ):
571572 return False
572573
573- self .NORMAL = curses . tigetstr ( 'sgr0' ) .decode ()
574+ self .NORMAL = normal .decode ()
574575 self .BOLD = bold .decode ()
575576 self .UNDER = under .decode ()
576577 self .DIM = parse_gray_color (set_eseq )
You can’t perform that action at this time.
0 commit comments