drawCharCode method

void drawCharCode(
  1. int x,
  2. int y,
  3. int charCode, [
  4. Color? foreground,
  5. Color? background,
])

Draws a character at column x, row y of this Terminal using its integer charCode using the given foreground and background Colors (or default colors).

Implementation

void drawCharCode(int x, int y, int charCode,
    [Color? foreground, Color? background]) {
  foreground ??= this.foreground;
  background ??= this.background;

  drawChar(x, y, Char.create(charCode, foreground, background));
}