setForeground method
Returns a command that represents setting the foreground color to this
.
Implementation
Command setForeground() {
switch (this) {
case Color.reset:
return SetColor16.resetForeground;
case final Color16 c:
return SetColor16(c.foregroundIndex);
default:
return Command.none;
}
}