PowerTCP SSH and SFTP for .NET
WindowDimensionChange Method




New terminal width, characters (e.g., 80)
New terminal height, rows (e.g., 24)
New terminal width, pixels (e.g., 640)
New terminal height, pixels (e.g., 480)
Informs the server that the local terminal dimensions have changed.
Syntax
'Declaration
 
Public Sub WindowDimensionChange( _
   ByVal term_width_characters As Integer, _
   ByVal term_height_characters As Integer, _
   ByVal term_width_pixels As Integer, _
   ByVal term_height_pixels As Integer _
) 
'Usage
 
Dim instance As Session
Dim term_width_characters As Integer
Dim term_height_characters As Integer
Dim term_width_pixels As Integer
Dim term_height_pixels As Integer
 
instance.WindowDimensionChange(term_width_characters, term_height_characters, term_width_pixels, term_height_pixels)
public void WindowDimensionChange( 
   int term_width_characters,
   int term_height_characters,
   int term_width_pixels,
   int term_height_pixels
)
public: void WindowDimensionChange( 
   int term_width_characters,
   int term_height_characters,
   int term_width_pixels,
   int term_height_pixels
) 
public:
void WindowDimensionChange( 
   int term_width_characters,
   int term_height_characters,
   int term_width_pixels,
   int term_height_pixels
) 

Parameters

term_width_characters
New terminal width, characters (e.g., 80)
term_height_characters
New terminal height, rows (e.g., 24)
term_width_pixels
New terminal width, pixels (e.g., 640)
term_height_pixels
New terminal height, pixels (e.g., 480)
Exceptions
ExceptionDescription
System.IO.IOExceptionThrown if the Session or the underlying connection is closed, or if no PTY was requested for this Session.
Remarks

Informs the server that the local terminal dimensions have changed and that this change shall be reflected to the remote pseudo terminal driver. This method may only be called when a pty (pseudo-terminal) is allocated.

Zero dimension parameters are ignored. The character/row dimensions override the pixel dimensions (when nonzero). Pixel dimensions refer to the drawable area of the window. The dimension parameters are only informational.

See Also

Reference

Session Class
Session Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic