Function: display-graphic-p

display-graphic-p is a byte-compiled function defined in frame.el.gz.

Signature

(display-graphic-p &optional DISPLAY)

Documentation

Return non-nil if DISPLAY is a graphic display.

Graphical displays are those which are capable of displaying several frames and several different fonts at once. This is true for displays that use a window system such as X, and false for text-only terminals. DISPLAY can be a display name, a frame, or nil (meaning the selected frame's display).

View in manual

Probably introduced at or before Emacs version 21.1.

Aliases

display-blink-cursor-p display-multi-frame-p display-multi-font-p ediff-window-display-p (obsolete since 29.1) eudc-bob-can-display-inline-images (obsolete since 29.1)

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun display-graphic-p (&optional display)
  "Return non-nil if DISPLAY is a graphic display.
Graphical displays are those which are capable of displaying several
frames and several different fonts at once.  This is true for displays
that use a window system such as X, and false for text-only terminals.
DISPLAY can be a display name, a frame, or nil (meaning the selected
frame's display)."
  (not (null (memq (framep-on-display display) '(x w32 ns pgtk haiku
                                                   android)))))