setForegroundColor16 method

void setForegroundColor16(
  1. int color
)

Sets the foreground to named colour color (0–15).

Implementation

void setForegroundColor16(int color) {
  _sgr(_color16(color, normal: 30, bright: 90, extended: 38));
}