ColouredText

Undocumented in source.

Constructors

this
this(ulong f, ulong b, T str)
Undocumented in source.
this
this(ulong f, T str)
Undocumented in source.

Members

Functions

toString
void toString(T sink)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bg
ulong bg;
Undocumented in source.
fg
ulong fg;
Undocumented in source.
hasBG
bool hasBG;
Undocumented in source.
thing
T thing;
Undocumented in source.

Examples

import std.conv : text;
import std.outbuffer;
ColouredText!("%s", ulong)().toString(new OutBuffer);
assert(colouredText!"Test %s"(1,2,3).text == "\x0301,02Test 3\x03");
assert(colouredText!"Test %s"(1,3).text == "\x0301Test 3\x03");

Meta