VtTerminal constructor

VtTerminal({
  1. required int cols,
  2. required int rows,
  3. int maxScrollback = 10_000,
})

Implementation

VtTerminal({required int cols, required int rows, int maxScrollback = 10_000})
  : _cols = _checkPositiveUint16(cols, 'cols'),
    _rows = _checkPositiveUint16(rows, 'rows'),
    _maxScrollback = _checkNonNegative(maxScrollback, 'maxScrollback'),
    _handle = _newTerminal(
      cols: cols,
      rows: rows,
      maxScrollback: maxScrollback,
    );