All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

screen-display-type Function

Summary

Returns the display type of the screen.

Package

capi

Signature

screen-display-type &optional screen-spec => type

Arguments
screen-spec
A screen, or any argument accepted by convert-to-screen.
Values
type
A keyword.
Description

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