setCell method

  1. @override
void setCell(
  1. int x,
  2. int y,
  3. String char,
  4. int fg,
  5. int bg,
  6. int mod, {
  7. bool? blend,
  8. int underlineColor = 0,
  9. String? uri,
})
override

Sets character, colors, and modifiers at coordinates.

When blend is true (or omitted when defaultBlend is true), fg and bg are alpha-blended over existing cell colors. When false, they replace existing colors directly so 0 resets to the terminal default.

Implementation

@override
void setCell(
  int x,
  int y,
  String char,
  int fg,
  int bg,
  int mod, {
  bool? blend,
  int underlineColor = 0,
  String? uri,
}) {
  if (x >= 0 && x < bounds.width && y >= 0 && y < bounds.height) {
    parent.setCell(
      bounds.x + x,
      bounds.y + y,
      char,
      fg,
      bg,
      mod,
      blend: blend,
      underlineColor: underlineColor,
      uri: uri,
    );
  }
}