setBackgroundExtendedColor method

void setBackgroundExtendedColor(
  1. int colorValue
)

Sets the background to one of 256 extended ANSI colors.

See https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit for the full set of colors. You may also run examples/demo.dart for this package, which provides a sample of each color in this list.

Implementation

void setBackgroundExtendedColor(int colorValue) {
  assert(colorValue >= 0 && colorValue <= 0xFF,
      'Color must be a value between 0 and 255.');

  stdout.write(ansiSetExtendedBackgroundColor(colorValue));
}