terminal-parameter

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

(terminal-parameter TERMINAL PARAMETER)

Return TERMINAL's value for parameter PARAMETER.
TERMINAL can be a terminal object, a frame, or nil (meaning the
selected frame's terminal).