Do not write the terminal name; only the exit status is affected when this option is specified. The -s option is deprecated in favor of the ""test -t 0"" command.
The tty utility exits 0 if the standard input is a terminal, 1 if the standard input is not a terminal, and >1 if an error occurs.