setForegroundColor256 method
Sets the foreground to palette colour index (0–255).
Implementation
void setForegroundColor256(int index) {
if (index < 0 || index > 255) return;
_sgr('38;5;$index');
}
Sets the foreground to palette colour index (0–255).
void setForegroundColor256(int index) {
if (index < 0 || index > 255) return;
_sgr('38;5;$index');
}