TCC > Variables & Functions > Variables:
Comments (...)
_STDIN returns 1 if STDIN points to the console, or 0 if it has been redirected.
Help URL: http://jpsoft.com/help/index.htm?_stdin.htm