Site Tools


ttyname

# $EPIC: ttyname.txt,v 1.2 2006/08/20 17:37:08 sthalik Exp $

Synopsis:

$ttyname()

Technical:

  • If EPIC is not attached to a terminal device (when you use the -b command line option) the empty string is returned.
  • This function returns the device name associated with the standard input.
  • This function calls the operating system's ttyname(3) function.

Practical:

Useful if you wanted to know which device you were logged into.

Returns:

The terminal device attached to standard input.

History:

This function fist appeared in EPIC4pre2.004-19990528

Examples:

$ttyname() might return /dev/ttyp2

ttyname.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1