document updated 13 years ago, on Jul 16, 2011
Various ways to check if the current terminal is interactive or not.
- there's the -t operator, which maps to ~isatty()
- use POSIX 'isatty'; is a variant of this
- fstat() is a variant of this
- IO::Interactive
- find out if there's a terminal allocated for us