dmd.console
Control the various text mode attributes, such as color, when writing text
to the console.
License
Source: console.d
Documentation: https://dlang.org/phobos/dmd_console.html
-
Declaration
nothrow booldetectTerminal();Tries to detect whether DMD has been invoked from a terminal.
Return Value
trueif a terminal has been detected,falseotherwise -
Declaration
nothrow ConsolecreateConsole(FILE*fp);Creates an instance of Console connected to stream
fp.Parameters
FILE*fpio stream
Return Value
reference to created Console