resizeTerminal method

void resizeTerminal(
  1. int width,
  2. int height, [
  3. int pixelWidth = 0,
  4. int pixelHeight = 0,
])

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,
  );
}