writeStyled method
Writes a character at the given position with the specified style.
Implementation
@override
void writeStyled(int x, int y, String char, TextStyle? style) {
_output.add('($x,$y):$char');
terminal.writeToGrid(x, y, char);
if (y >= 0 && y < _styleGrid.length && x >= 0 && x < _styleGrid[y].length) {
_styleGrid[y][x] = style;
}
}