def resize_pty(self, width=<NUM_LIT>, height=<NUM_LIT>):
if self.closed or self.eof_received or self.eof_sent or not self.active:<EOL><INDENT>raise SSHException('<STR_LIT>')<EOL><DEDENT>m = Message()<EOL>m.add_byte(chr(MSG_CHANNEL_REQUEST))<EOL>m.add_int(self.remote_chanid)<EOL>m.add_string('<STR_LIT>')<EOL>m.add_boolean(True)<EOL>m.add_int(width)<EOL>m.add_int(height)<EOL>m.add_int(<NUM_LIT:0>).add_int(<NUM_LIT:0>)<EOL>self._event_pending()<EOL>self.transport._send_user_message(m)<EOL>self._wait_for_event()<EOL>
Resize the pseudo-terminal.  This can be used to change the width and
height of the terminal emulation created in a previous L{get_pty} call.

@param width: new width (in characters) of the terminal screen
@type width: int
@param height: new height (in characters) of the terminal screen
@type height: int

@raise SSHException: if the request was rejected or the channel was
    closed