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 catcher_start(event_id=None): if manager.active(PipeCatcher): return False manager.create(PipeCatcher, event_id=event_id) return True