setTerminalWindowSize method
Sends window-change MSG_CHANNEL_REQUEST.
Implementation
void setTerminalWindowSize(int w, int h) {
termWidth = w;
termHeight = h;
if (socket == null || sessionChannel == null) return;
writeCipher(MSG_CHANNEL_REQUEST.ptyReq(
sessionChannel.remoteId,
'window-change',
Point(termWidth, termHeight),
Point(termWidth * 8, termHeight * 12),
termvar,
'',
false));
}