my.term_color

Members

Aliases

Background
alias Background = BaseColor!10
Undocumented in source.
Color
alias Color = BaseColor!0
Undocumented in source.

Enums

Mode
enum Mode
Undocumented in source.

Functions

color
auto color(string s, Color c)
Undocumented in source. Be warned that the author may not have intended to support it.
initColors
void initColors(bool forceOn)

It will detect whether or not stdout/stderr are a console/TTY and will consequently disable colored output if needed.

Structs

ColorImpl
struct ColorImpl
Undocumented in source.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

Terminal colors. initColors must be called for the colors to be activated. Colors are automatically toggled off if the output is not an interactive tty. This can be bypassed by calling initColors with true.