Go to main content
Oracle Developer Studio 12.6 Man Pages

Exit Print View

Updated: June 2017
 
 

ttynam(3F)

Name

ttynam, isatty - find name of terminal port; also: is unit a terminal?

Synopsis

character*(*) function ttynam (lunit)
logical function isatty (lunit)

Description

The function ttynam returns a blank-padded path name of the terminal device associated with logical unit lunit.

The function isatty returns .true. if lunit is associated with a terminal device, .false. otherwise.

Files

/dev/*, libfsu.a

Diagnostics

The function ttynam returns an empty string (all blanks) if lunit is not associated with a terminal device in the directory /dev.