Function: tty-display-color-cells
tty-display-color-cells is a function defined in term.c.
Signature
(tty-display-color-cells &optional TERMINAL)
Documentation
Return the number of colors supported by the tty device TERMINAL.
TERMINAL can be a terminal object, a frame, or nil (meaning the selected frame's terminal). This function always returns 0 if TERMINAL does not refer to a text terminal.
Source Code
// Defined in /usr/src/emacs/src/term.c
{
struct terminal *t = decode_tty_terminal (terminal);
return make_fixnum (t ? t->display_info.tty->TN_max_colors : 0);
}