set_foreground_extended_color method

  1. @override
void set_foreground_extended_color(
  1. AnsiExtendedColorPalette color
)
override

Sets the foreground 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

@override
void set_foreground_extended_color(
  final AnsiExtendedColorPalette color,
) {
  stdout.write(
    ansi_set_extended_foreground_color(
      color,
    ),
  );
}