TTY(1) TTY(1) NAME tty, logtty - get terminal name SYNOPSIS tty [ -s ] logtty DESCRIPTION Tty prints the pathname associated with the standard input file if it can be found in the directory, `nameless pipe/' and a unique string if the file is a pipe, `not a tty' oth- erwise. Option `-s' suppresses output, returning exit sta- tus only. Logtty prints the pathname associated with the terminal on which the current session was logged in. If the login ter- minal can't be found, `no login tty' is printed. In a mux(9.1) window, tty reports the name of the window, while logtty reports the name of the terminal. But see BUGS. SEE ALSO who(1) DIAGNOSTICS Exit status is 0 if a real pathname was printed, 1 for `not a tty' or `no login tty', 2 for a pipe. BUGS Mounting something atop the login terminal hides it from logtty. Vismon(9.1) does this. Try `tty </'.