https://en.m.wikipedia.org/wiki/Display_PostScript
https://en.m.wikipedia.org/wiki/NeWS
You would write full blown GUI apps in Postscript with some C glue.