writeStyled method

void writeStyled(
  1. int x,
  2. int y,
  3. String char,
  4. TextStyle? style,
)

Implementation

void writeStyled(int x, int y, String char, TextStyle? style) {
  if (y >= terminal.height || x >= terminal.width || x < 0 || y < 0) {
    AppLogger.log(
      'OutputBuffer: Write out of bounds - x:$x, y:$y, '
      'terminal size: ${terminal.width}x${terminal.height}',
    );
    return;
  }
  _grid[y][x] = Cell(char, style);
}