terminal-parameters

terminal-parameters is a built-in function in `C source code'.

(terminal-parameters &optional TERMINAL)

Return the parameter-alist of terminal TERMINAL.
The value is a list of elements of the form (PARM . VALUE), where PARM
is a symbol.

TERMINAL can be a terminal object, a frame, or nil (meaning the
selected frame's terminal).