Function: display-color-p
display-color-p is a byte-compiled function defined in faces.el.gz.
Signature
(display-color-p &optional DISPLAY)
Documentation
Return t if DISPLAY supports color.
The optional argument DISPLAY specifies which display to ask about. DISPLAY should be either a frame or a display name (a string). If omitted or nil, that stands for the selected frame's display.
Probably introduced at or before Emacs version 21.1.
Aliases
viper-color-display-p (obsolete since 29.1)
ediff-color-display-p (obsolete since 27.1)
mh-colors-available-p (obsolete since 29.1)
x-display-color-p (obsolete since 30.1)
ps-color-device (obsolete since 29.1)
Source Code
;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun display-color-p (&optional display)
"Return t if DISPLAY supports color.
The optional argument DISPLAY specifies which display to ask about.
DISPLAY should be either a frame or a display name (a string).
If omitted or nil, that stands for the selected frame's display."
(if (display-graphic-p display)
(xw-display-color-p display)
(tty-display-color-p display)))