@open_only<EOL><INDENT>def resize_pty(self, width=<NUM_LIT>, height=<NUM_LIT>, width_pixels=<NUM_LIT:0>, height_pixels=<NUM_LIT:0>):<DEDENT>
m = Message()<EOL>m.add_byte(cMSG_CHANNEL_REQUEST)<EOL>m.add_int(self.remote_chanid)<EOL>m.add_string("<STR_LIT>")<EOL>m.add_boolean(False)<EOL>m.add_int(width)<EOL>m.add_int(height)<EOL>m.add_int(width_pixels)<EOL>m.add_int(height_pixels)<EOL>self.transport._send_user_message(m)<EOL>
Resize the pseudo-terminal.  This can be used to change the width and
height of the terminal emulation created in a previous `get_pty` call.

:param int width: new width (in characters) of the terminal screen
:param int height: new height (in characters) of the terminal screen
:param int width_pixels: new width (in pixels) of the terminal screen
:param int height_pixels: new height (in pixels) of the terminal screen

:raises:
    `.SSHException` -- if the request was rejected or the channel was
    closed