fg256 function

String fg256(
  1. int color
)

Set color to foreground from 256-color table.

See also fg256Open.

Implementation

String fg256(int color) {
  assert(color >= 0 && color <= 255, _colorNumberAssert);
  return '$fg256Open$color$fg256Close';
}