Пример #1
0
def start():
    try:
        if manager.active(TTYRec):
            return False
    except:
        try:
            manager.stop(TTYRec)
        except:
            pass

    return manager.create(TTYRec)
Пример #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)
Пример #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
    )
Пример #4
0
def stop():
    return manager.stop(TTYRec)
Пример #5
0
def catcher_stop():
    catcher_sync()
    catcher = manager.get(PipeCatcher)
    if catcher:
        manager.stop(PipeCatcher)
Пример #6
0
def release():
    manager.stop(PtyShell)