.th TTYN III 5/31/77 .sh NAME ttyn \*- return name of current terminal .sh SYNOPSIS .ft B jsr pc,ttyn .s3 ttyn(file) .s3 .ft R .sh DESCRIPTION .it Ttyn hunts up the last character of the name of the terminal which is the standard input (from \fIas\fR) or is specified by the argument .it file descriptor (from C). If \fIn\fR is returned, the terminal name is then ``/dev/tty\fIn\fR''. .s3 .bd x is returned if the indicated file does not correspond to a terminal.