dmd.console

Control the various text mode attributes, such as color, when writing text to the console.

Members

Functions

createConsole
Console createConsole(FILE* fp)

Creates an instance of Console connected to stream fp.

detectColorPreference
bool detectColorPreference()

* Tries to detect the preference for colorized console output * based on the NO_COLOR environment variable: https://no-color.org/ * * Returns: true if colorized console output is preferred

detectTerminal
bool detectTerminal()

Tries to detect whether DMD has been invoked from a terminal.

Interfaces

Console
interface Console
Undocumented in source.

Meta