Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ANN: Update of libX11 files for kForth

16 views
Skip to first unread message

Krishna Myneni

unread,
Jun 2, 2012, 11:02:16 AM6/2/12
to
There has been a significant update of the X11 library interface files
for kForth. If you are playing with X11 programming in kForth, please
ensure you have the latest versions of the files at

ftp://ccreweb.org/software/kforth/examples/libs/x11/

Revisions include:

-- Addition of the file Xutil.4th (provides additional data structures
used by the C X11 library)
-- Updated structures in Xlib.4th
-- Numerous additions to libX11.4th

The Forth to X11 interface is near a stage where it may be possible to
write a simple X11 window manager (graphical desktop) in Forth, but I
suspect the interface to a few necessary functions are still missing.

The simple Forth graphics interface to X11, for single window apps,
has also been revised:

ftp://ccreweb.org/software/kforth/examples/simple-graphics-x11.4th

The revisions permit the window name (appearing in the title bar) to
be set (SET-WINDOW-NAME), the window to be resized via a Forth word
(RESIZE-WINDOW), and the created window receives and handles window
delete messages from the window manager (previously, pressing the "x"
button for closing a window created by simple-graphics led to a
crash).

Krishna


Krishna Myneni

unread,
Jun 3, 2012, 12:06:35 AM6/3/12
to
Found bugs in return values of words, XSetWMName and XSetWMIconName in
libX11.4th. This file and simple-graphics-x11.4th have been updated in
place.

Krishna

Krishna Myneni

unread,
Jun 3, 2012, 9:57:30 PM6/3/12
to
On Jun 2, 10:02 am, Krishna Myneni <krishna.myn...@ccreweb.org> wrote:
> There has been a significant update of the X11 library interface files
> for kForth. If you are playing with X11 programming in kForth, please
> ensure you have the latest versions of the files at
>
> ftp://ccreweb.org/software/kforth/examples/libs/x11/
>

There's now also a preliminary version of an interface to Xft, the X
Freetype interface library, to render anti-aliased fonts. See the
following files in the same directory:

Xrender.4th
Xft.4th
libXft.4th

and a demo Forth program, utilizing the libXft interface,

demo-xft.4th

The demo program is translated from a C program at the given link in
the comments.

Krishna

0 new messages