Function: tty-type
tty-type is a function defined in term.c.
Signature
(tty-type &optional TERMINAL)
Documentation
Return the type of the tty device that TERMINAL uses.
Returns nil if TERMINAL is not on a tty device.
TERMINAL can be a terminal object, a frame, or nil (meaning the selected frame's terminal).
Probably introduced at or before Emacs version 23.1.
Source Code
// Defined in /usr/src/emacs/src/term.c
{
char *name = tty_type_name (terminal);
return (name? build_string (name) : Qnil);
}