tty

tty#

Print the terminal device.

$ tty
$ tty -s && echo "interactive"