TTYTEST
NAME
ttytest - test if process connected to foreground terminal
SYNOPSIS
int ttytest()
DESCRIPTION
ttytest()
is a routine to check if it is sensible to report messages to the standard
output. It returns 1 if the process is connected to a terminal and is
running in the foreground, and 0 otherwise.
To force detection of a terminal, set the environment variable GFORCE.
VERSION/AUTHOR
1.0 - Mark Huckvale
Wed Jul 17 22:31:29 2013