Console.detectTerminal

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

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

Return Value

Type: bool

true if a terminal has been detect, false otherwise

Meta