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

  man pages->HP-UX 11i man pages -> pty (1)              
Title
Content
Arch
Section
 

Contents


 tty(1)                                                               tty(1)




 NAME    [Toc]    [Back]
      tty, pty - get the name of the terminal

 SYNOPSIS    [Toc]    [Back]
      tty [-s]

      pty [-s]

 DESCRIPTION    [Toc]    [Back]
      tty and pty print the path name of the user's terminal.  The -s option
      inhibits printing of the terminal path name and any diagnostics,
      providing a means to test only the exit code.

 RETURN VALUE    [Toc]    [Back]
      Exit status codes for tty are:

           2       Invalid options were specified,
           1       The standard input is not a terminal or pseudo-terminal,
           0       The standard input is a terminal or pseudo-terminal.

      Exit status codes for pty are:

           2       Invalid options were specified,
           1       The standard input is not a pseudo-terminal,
           0       The standard input is a pseudo-terminal.

 DIAGNOSTICS    [Toc]    [Back]
      not a tty standard input is not a terminal or pseudo-terminal for tty.

      not a pty standard input is not a pseudo-terminal for pty.

 AUTHOR    [Toc]    [Back]
      tty was developed by AT&T.  pty was developed by HP.

 STANDARDS CONFORMANCE    [Toc]    [Back]
      tty: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ 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