(cap_name)
return re.sub(r"\$<\d+>[/*]?", "", cap)
Rewrites string capabilities to remove "delays" which are not
        required for modern terminals
Rewrites string capabilities to remove "delays" which are not
        required for modern terminals
Rewrites string capabilities to remove delays which are not required for modern terminals
def _tigetstr(cap_name):
        """Rewrites string capabilities to remove "delays" which are not
        required for modern terminals"""
        # String capabilities can include "delays" of the form "$<2>".
        # For any modern terminal, we should be able to just ignore
        # these, so strip them out.
        import curses

        cap = curses.tigetstr(cap_name) or b""
        cap = cap.decode("latin-1")
        return re.sub(r"\$<\d+>[/*]?", "", cap)
def _tigetstr ( cap_name ) : # String capabilities can include "delays" of the form "$<2>". # For any modern terminal, we should be able to just ignore # these, so strip them out. import curses cap = curses . tigetstr ( cap_name ) or b"" cap = cap . decode ( "latin-1" ) return re . sub ( r"\$<\d+>[/*]?" , "" , cap )