Function: display-planes
display-planes is a byte-compiled function defined in frame.el.gz.
Signature
(display-planes &optional DISPLAY)
Documentation
Return the number of planes supported by DISPLAY.
DISPLAY can be a display name or a frame. If DISPLAY is omitted or nil, it defaults to the selected frame's display.
Probably introduced at or before Emacs version 21.1.
Source Code
;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun display-planes (&optional display)
"Return the number of planes supported by DISPLAY.
DISPLAY can be a display name or a frame.
If DISPLAY is omitted or nil, it defaults to the selected frame's display."
(let ((frame-type (framep-on-display display)))
(cond
((memq frame-type '(x w32 ns haiku pgtk android))
(x-display-planes display))
((eq frame-type 'pc)
4)
(t
(logb (length (tty-color-alist)))))))