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


Walter Bright

Source: console.d

  • Declaration

    nothrow bool detectTerminal();

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

    Return Value

    true if a terminal has been detected, false otherwise

  • Declaration

    nothrow Console createConsole(FILE* fp);

    Creates an instance of Console connected to stream fp.


    FILE* fp

    io stream

    Return Value

    reference to created Console