Returns the display type of the screen.
capi
screen-display-type &optional screen-spec => type
screen-spec⇩ |
A screen, or any argument accepted by convert-to-screen. |
type |
A keyword. |
The function screen-display-type
returns the type of the display that screen-spec is displayed on. In LispWorks 8.1 its main purpose is to distinguish between displaying on X11 or Wayland when using GTK+.
On Windows, screen-display-type
always returns :windows
.
On macOS, when using Cocoa, screen-display-type
returns :cocoa
.
When using GTK, screen-display-type
returns :x11
or :wayland
. In principle, depending on the GTK library used, it can also return :broadway
, :quartz
, :win32
or :unknown
, but only :x11
and :wayland
displays have been tested.
When using Motif, screen-display-type
returns :motif
.
CAPI User Guide and Reference Manual (Unix version) - 18 Feb 2025 15:34:22