fg256 function

String fg256(
  1. int colorIndex
)

Set color to foreground from 256-color table.

See also fg256Open and fg256Close.

Implementation

String fg256(int colorIndex) {
  IndexError.check(colorIndex, 256, name: 'colorIndex');

  return '$fg256Open$colorIndex$fg256Close';
}