setForegroundColorRgb method

void setForegroundColorRgb(
  1. int r,
  2. int g,
  3. int b
)

Sets the foreground to the RGB colour r, g, b.

Implementation

void setForegroundColorRgb(int r, int g, int b) {
  _sgr('38;2;${r & 0xff};${g & 0xff};${b & 0xff}');
}