Buffer constructor

Buffer(
  1. TerminalState terminal, {
  2. required int maxLines,
  3. required bool isAltBuffer,
  4. Set<int>? wordSeparators,
})

Creates the main or alternate (isAltBuffer) buffer of terminal.

Terminal creates its two buffers itself. A buffer created for any other TerminalState has no screen to read: it holds TerminalState.viewHeight blank lines.

Implementation

Buffer(
  this.terminal, {
  required this.maxLines,
  required this.isAltBuffer,
  this.wordSeparators,
});