Console.detectTerminal

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

  1. bool detectTerminal()
    struct Console
    version(Windows)
    nothrow static
    bool
    detectTerminal
    ()
  2. bool detectTerminal()

Return Value

Type: bool

true if a terminal has been detected, false otherwise

Suggestion Box / Bug Report