(self, capability, *args)
return False
Emit escape code.
Emit escape code.
Emit escape code .
def _emit_ti(self, capability, *args):
        """Emit escape code."""
        if not curses:
            return False
        try:
            pattern = ANSI_OVERRIDES[capability]
        except KeyError:
            pattern = curses.tigetstr(capability)
        if pattern:
            ansistr = curses.tparm(pattern, *args).decode('ascii')
            stdio.stdout.write(ansistr)
            stdio.stdout.flush()
            return True
        return False
def _emit_ti ( self , capability , * args ) : if not curses : return False try : pattern = ANSI_OVERRIDES [ capability ] except KeyError : pattern = curses . tigetstr ( capability ) if pattern : ansistr = curses . tparm ( pattern , * args ) . decode ( 'ascii' ) stdio . stdout . write ( ansistr ) stdio . stdout . flush ( ) return True return False