isErrorTty

expect fun isErrorTty(): Boolean

True if the error is connected to the TTY.

If the program is running interactively this will (usually) be true, and it means writeOutput will go to the terminal. If the user has piped the output of this program into another, explicitly redirected the output stream somewhere, or is simply running this program in a non-interactive context (such as within an IDE, build tool, or headlessly), this will be false.

actual fun isErrorTty(): Boolean
actual fun isErrorTty(): Boolean