Function: display-symbol-keys-p

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

Signature

(display-symbol-keys-p &optional DISPLAY)

Documentation

Return non-nil if DISPLAY supports symbol names as keys.

This means that, for example, DISPLAY can differentiate between the keybinding RET and [return].

Probably introduced at or before Emacs version 27.1.

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun display-symbol-keys-p (&optional display)
  "Return non-nil if DISPLAY supports symbol names as keys.
This means that, for example, DISPLAY can differentiate between
the keybinding RET and [return]."
  (let ((frame-type (framep-on-display display)))
    (or (memq frame-type '(x w32 ns pc pgtk haiku android))
        ;; MS-DOS and MS-Windows terminals have built-in support for
        ;; function (symbol) keys
        (memq system-type '(ms-dos windows-nt)))))