if $stdin.tty? print "Stdin is a TTY.\n" else print "Stdin is not a TTY.\n" end