Function: framep-on-display

framep-on-display is a byte-compiled function defined in frame.el.gz.

Signature

(framep-on-display &optional TERMINAL)

Documentation

Return the type of frames on TERMINAL.

TERMINAL may be a terminal id, a display name or a frame. If it is a frame, its type is returned. If TERMINAL is omitted or nil, it defaults to the selected frame's terminal device. All frames on a given display are of the same type.

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun framep-on-display (&optional terminal)
  "Return the type of frames on TERMINAL.
TERMINAL may be a terminal id, a display name or a frame.  If it
is a frame, its type is returned.  If TERMINAL is omitted or nil,
it defaults to the selected frame's terminal device.  All frames
on a given display are of the same type."
  (or (terminal-live-p terminal)
      (framep terminal)
      (framep (car (frames-on-display-list terminal)))))