Vala.Io.Console.isTTY – Valacore Reference Manual
isTTY
Description:
public
static
bool
isTTY
()
Returns whether standard input is a terminal.
Returns:
true when stdin is a TTY.