next up previous contents index
Next: TellDir Up: Functions and procedures Previous: TCSetPGrp

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
Thu Sep 10 13:59:33 CEST 1998