Future<bool> textColor(int fg, [int bg])

Changes the foreground, and optionally background colors for any future calls to text.

Source

Future<bool> textColor(int fg, [int bg]) => (bg != null)
    ? proto.write(4, _s2b(fg)..addAll(_s2b(bg)))
    : proto.write(4, _s2b(fg));