next up previous contents index
Next: FExpand Up: Functions and procedures Previous: IsATTY

TTYName

   

Declaration:

Function TTYName (var f) : String;

Description:

Returns the name of the terminal pointed to by f. f must be a terminal. f can be of type:

  1. longint for file handles;
  2. Text for text variables such as input etc.

Errors:

Returns an empty string in case of an error. Linuxerror may be set to indicate what error occurred, but this is uncertain.

See also:

IsATTY,IOCtl



Michael Van Canneyt
Tue Mar 31 16:46:10 CEST 1998