foreground method

String foreground(
  1. AsciiInk colour
)

Sets the text colour.

Works with any AsciiInk: a palette AsciiColour or a true-colour AsciiColourRgb. Uses AsciiInk.fg.

Implementation

String foreground(AsciiInk colour) => _wrap(colour.fg);