resizeTerminal method
Inform remote process of the current window size.
Implementation
void resizeTerminal(
int width,
int height, [
int pixelWidth = 0,
int pixelHeight = 0,
]) {
if (width < 0) {
throw ArgumentError.value(width, 'width', 'must be positive');
}
if (height < 0) {
throw ArgumentError.value(height, 'height', 'must be positive');
}
if (pixelWidth < 0) {
throw ArgumentError.value(pixelWidth, 'pixelWidth', 'must be positive');
}
if (pixelHeight < 0) {
throw ArgumentError.value(pixelHeight, 'pixelHeight', 'must be positive');
}
_channel.sendTerminalWindowChange(
width: width,
height: height,
pixelWidth: pixelWidth,
pixelHeight: pixelHeight,
);
}