Example #1
0
def start():
    try:
        if manager.active(TTYRec):
            return False
    except:
        try:
            manager.stop(TTYRec)
        except:
            pass

    return manager.create(TTYRec)
Example #2
0
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)
Example #3
0
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
    )
Example #4
0
def catcher_start(event_id=None):
    if manager.active(PipeCatcher):
        return False

    manager.create(PipeCatcher, event_id=event_id)
    return True