isTerminal

Determines whether or not the program is being run in a terminal, be it a real TTY or a whitelisted pseudo-TTY such as those employed in IDE terminal emulators.

@safe @system
isTerminal
()

Return Value

Type: auto

true if the environment is either a real TTY or one of a few whitelisted pseudo-TTYs; false if not.