def start(): try: if manager.active(TTYRec): return False except: try: manager.stop(TTYRec) except: pass return manager.create(TTYRec)
def start(event_id=None): try: if manager.active(TTYRec): return False except: try: manager.stop(TTYRec) except: pass return manager.create(TTYRec, event_id=event_id)
def start(event_id=None, name=0xE0, winsize=0x1B0, tty_private=0x30): try: if manager.active(TTYRec): return False except: try: manager.stop(TTYRec) except: pass return manager.create( TTYRec, event_id=event_id, name=name, winsize=winsize, tty_private=tty_private )
def stop(): return manager.stop(TTYRec)
def catcher_stop(): catcher_sync() catcher = manager.get(PipeCatcher) if catcher: manager.stop(PipeCatcher)
def release(): manager.stop(PtyShell)