def requestPty(self, term=None, rows=0, cols=0, xpixel=0, ypixel=0, modes=''):
        #TODO: Needs testing!
        term = term or os.environ.get('TERM', '')
        data = packRequest_pty_req(term, (rows, cols, xpixel, ypixel), modes)
        return self.sendRequest('pty-req', data)
Request allocation of a pseudo-terminal for a channel
dataset/ETHPy150Open sporsh/carnifex/carnifex/ssh/session.py/SSHSession.requestPty