Function: frame-terminal

Return the terminal that FRAME is displayed on.
If FRAME is nil, the selected frame is used.

The terminal device is represented by its integer identifier.

(fn &optional FRAME)