Starting from version 1.8 of z88dk we are providing an experimental library to emulate some basic behaviour fo the Xlib functions. It isn't based on the network layer as the original library, and it implements only a tiny subset of the original functions but, being based on the “monochrome graphics” library, it is fairy portable to many of the supported targets.
This example source program can be compiled and run with almost no changes for both the z88dk systems and a Unix X-Windows system.
The window background is saved and the window title, and the XPM icon are managed as expected. The font loading is cleverly simulated, and the size is adapted by choosing between two base fonts.
An AWK script is provided to easily convert the X font in a form suitable for the library.