*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> tty (1)              


TTY(1)									TTY(1)

NAME    [Toc]    [Back]

     tty - get the name	of the terminal

SYNOPSIS    [Toc]    [Back]

     tty [ -l ]	[ -s ]

DESCRIPTION    [Toc]    [Back]

     tty prints	the path name of the user's terminal.

     -l	  prints the synchronous line number to	which the user's terminal is
	  connected, if	it is on an active synchronous line.

     -s	  inhibits printing of the terminal path name, allowing	one to test
	  just the exit	code.

				    EXIT CODES
		      2	  if invalid options were specified,
		      0	  if standard input is a terminal,
		      1	  otherwise.

DIAGNOSTICS    [Toc]    [Back]

     ``not on an active	synchronous line'' if the standard input is not	a
     synchronous terminal and -l is specified.
     ``not a tty'' if the standard input is not	a terminal and -s is not

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
termios Linux get and set terminal attributes, line control, get and set baud rate, get and set terminal foregroun...
ct HP-UX spawn getty to a remote terminal (call terminal)
isatty Tru64 Get the name of a terminal
ttyname Tru64 Get the name of a terminal
ttyname_r Tru64 Get the name of a terminal
tabs FreeBSD set terminal tabs
stty IRIX set the options for a terminal
gettydefs Tru64 Terminal attributes
lock FreeBSD reserve a terminal
tset FreeBSD terminal initialization
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service