colored

Simple coloring module for strings

Public Imports

colored.packageversion
public import colored.packageversion;
Undocumented in source.

Members

Enums

AnsiColor
enum AnsiColor

Available Colors

Style
enum Style

Available Styles

Functions

all
bool all(uint[] token)
Undocumented in source. Be warned that the author may not have intended to support it.
backgroundColor
bool backgroundColor(uint[] token)
Undocumented in source. Be warned that the author may not have intended to support it.
colorMixin
auto colorMixin()
Undocumented in source. Be warned that the author may not have intended to support it.
filterAnsiEscapes
string filterAnsiEscapes(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
foregroundColor
bool foregroundColor(uint[] token)
Undocumented in source. Be warned that the author may not have intended to support it.
leftJustifyFormattedString
auto leftJustifyFormattedString(string s, ulong width, dchar fillChar)
Undocumented in source. Be warned that the author may not have intended to support it.
none
bool none(uint[] token)
Undocumented in source. Be warned that the author may not have intended to support it.
onRgb
string onRgb(string s, ubyte r, ubyte g, ubyte b)
Undocumented in source. Be warned that the author may not have intended to support it.
rgb
string rgb(string s, ubyte r, ubyte g, ubyte b)
Undocumented in source. Be warned that the author may not have intended to support it.
rightJustifyFormattedString
auto rightJustifyFormattedString(string s, ulong width, char fillChar)
Undocumented in source. Be warned that the author may not have intended to support it.
style
bool style(uint[] token)
Undocumented in source. Be warned that the author may not have intended to support it.
styleMixin
auto styleMixin()
Undocumented in source. Be warned that the author may not have intended to support it.
tokenize
auto tokenize(Range parts)
Undocumented in source. Be warned that the author may not have intended to support it.
unformattedLength
ulong unformattedLength(string s)

Calculate length of string excluding all formatting escapes

Structs

RGBString
struct RGBString
Undocumented in source.
StyledString
struct StyledString

Internal structure to style a string

Meta

Authors

Christian Koestlin