

def __init__(self, proto, chainedProtocol, avatar, width, height):
    self.proto = proto
    self.avatar = avatar
    self.chainedProtocol = chainedProtocol
    session = self.proto.session
    self.proto.makeConnection(_Glue(write=self.chainedProtocol.dataReceived, loseConnection=(lambda : avatar.conn.sendClose(session)), name='SSH Proto Transport'))

    def loseConnection():
        self.proto.loseConnection()
    self.chainedProtocol.makeConnection(_Glue(write=self.proto.write, loseConnection=loseConnection, name='Chained Proto Transport'))
    self.chainedProtocol.terminalProtocol.terminalSize(width, height)

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/manhole_ssh.py TerminalSessionTransport.__init__/original