Function TTYName (var f) : String;
Returns the name of the terminal pointed to by f. f must be a terminal. f can be of type:
Returns an empty string in case of an error. Linuxerror may be set to indicate what error occurred, but this is uncertain.
IsATTY,IOCtl