X Window Programming/CLX

CLX is the standard X Window System protocol client library for Common Lisp. You can preface all commands with xlib: or have xlib become the current package with (in-package :xlib).

Connecting to the X display
To be able to interface with X we will first need to connect to a server:

or you can supply the hostname and display number yourself (if the hostname is an empty string it will connect to your localhost by default):