Window creation/X11: Difference between revisions

Content added Content deleted
Line 339: Line 339:
=={{header|Common Lisp}}==
=={{header|Common Lisp}}==


{{field attention|Common Lisp|X11|This example was written in near-total ignorance of X11 by consulting the [http://www.cliki.net/CLX%20Manual CLX manual] to find equivalents for the parts of the C example. It was also only tested with [[Mac OS X]] X11, which is not exactly normal. — (ps: Testing on Linux (Fedora 21/x86-64), it seems to display black-on-black, so the "Hello" is lost.). Testing new code changes (i.e. adding background and foreground) should fix the issue, it was tested on LinuxMint 17.1/x86-64}}
{{field attention|Common Lisp|X11|This example was written in near-total ignorance of X11 by consulting the [http://www.cliki.net/CLX%20Manual CLX manual] to find equivalents for the parts of the C example. It was also only tested with [[Mac OS X]] X11, which is not exactly normal. — (ps: Testing on Linux (Fedora 21/x86-64), it seems to display black-on-black, so the "Hello" is lost.). Testing new code changes (i.e. adding background and foreground) should fix the issue, it was tested on LinuxMint 17.1/x86-64.
Also tested on Debian; with a minor change on the text position it creates a pixel perfect replica of the C example. Could this warning be removed then?}}


{{trans|C}}
{{trans|C}}
Line 367: Line 368:
(exposure ()
(exposure ()
(draw-rectangle window gc 20 20 10 10 t)
(draw-rectangle window gc 20 20 10 10 t)
(draw-glyphs window gc 10 40 "Hello, World!")
(draw-glyphs window gc 10 50 "Hello, World!")
nil #| continue receiving events |#)
nil #| continue receiving events |#)
(key-press ()
(key-press ()