

def runWithProtocol(klass):
    fd = sys.__stdin__.fileno()
    oldSettings = termios.tcgetattr(fd)
    tty.setraw(fd)
    try:
        p = ServerProtocol(oldSettings)
        stdio.StandardIO(p)
        reactor.run()
    finally:
        termios.tcsetattr(fd, termios.TCSANOW, oldSettings)
        os.write(fd, '\r\x1bc\r')

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/stdio.py runWithProtocol/VarMisuse@44/56 `klass`->`oldSettings`