Next: , Previous: , Up: X Server   [Contents][Index]


59.2.2 Data about the X Server

This section describes functions and a variable that you can use to get information about the capabilities and origin of the X server corresponding to a particular device. The device argument is generally optional and defaults to the selected device.

Function: x-server-version &optional device

This function returns the list of version numbers of the X server device is on. The returned value is a list of three integers: the major and minor version numbers of the X protocol in use, and the vendor-specific release number.

Function: x-server-vendor &optional device

This function returns the vendor supporting the X server device is on.

Function: x-display-visual-class &optional device

This function returns the visual class of the display device is on. The value is one of the symbols static-gray, gray-scale, static-color, pseudo-color, true-color, and direct-color. (Note that this is different from previous versions of SXEmacs, which returned StaticGray, GrayScale, etc.)