Filing in X11

Brian T Rice water at tunes.org
Sun Dec 7 12:46:33 PST 2003


On Sun, 7 Dec 2003, Mikael Svane wrote:

> Hello,
>
> I am new to Slate, which judging by the written material looks very
> interesting.

Hi, and welcome!

> After having followed the readme file up to the point where the image
> has been saved under the name slate-full, I wanted to try the X11 user
> interface (using MicroImages X-server on Windows XP) and after examining
> the files in the 'ui' directory (which probably by the way should be
> renamed 'graphics', since at least the src/ui/build.slate file uses that
> name for the directory), I made two modifications to src/ui/build.slate,
> in order to compile with src/graphics/X11/colors.slate and
> src/graphics/X11/port.slate. The last change was made since the
> port.slate file originally referred to seemed to be only a template. All
> files get compiled, with the exception of the
> src/graphics/X11/port.slate file, which gives an error (Bad argument
> name in method definition on line 33: X11). Obviously I am doing
> something wrong. What is the correct way of filing in the X11 user
> interface and how do I connect to the X-server after a successful
> fileIn?

The UI section of the libraries just basically isn't supported yet, but
what you can do is to get the X11 primitives loaded, which will allow
X11/port.slate to load, which connects the agnostic libraries with the
backend. Basically, you have to start your lisp and load lisp X11 support
before the build.lisp script. This is ideally done with a (require :clx)
or something similar. If you're using CLISP, recent versions can load it
with a ... er, well, I'm not sure, but I managed to break CLISP trying;
if I get it going, I'll publish some instructions, perhaps on the wiki.
Anyway, the prims.lisp just checks for that feature when it loads and
loads the X11 Slate primitives if so.

And, actually, the directory was renamed from graphics/ TO ui/ for
specific reasons (terminal abstraction), so really it's the build.slate
that needs fixing (which I'll do now).

> Best regards,
> Mikael Svane
> mikael.svane at swipnet.se

-- 
Brian T. Rice
LOGOS Research and Development
http://tunes.org/~water/



More information about the Slate mailing list