[Overview][Constants][Types][Procedures and functions][Variables][Index] | Reference for unit 'oldlinux' (#rtl)

# TTYname

Terminal control: Get terminal name

## Declaration

Source position: line 0

`function TTYname(`
`Handle: LongInt`
`):string; function TTYname(`
`var F: Text`
`):string;`

## Description

TTYNameReturns 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

TCDrain |  | Terminal control: Wait till all data was transmitted
TCFlow |  | Terminal control: Suspend transmission of data
TCFlush |  | Terminal control: Discard data buffer
TCGetAttr |  | Terminal Control: Get terminal attributes
TCGetPGrp |  | Terminal control: Get process group
TCSendBreak |  | Terminal control: Send break
TCSetAttr |  | Terminal control: Set attributes
TCSetPGrp |  | Terminal control: Set process group
IsATTY |  | Check if filehandle is a TTY (terminal)
IOCtl |  | General kernel IOCTL call.

Documentation generated on: Feb 26 2014