D. Arnold wrote: > > 19 August 2003 > > How could we use user interface toolkits like ncurses or X with gforth? > Is this already perfected? I thought of a few ways. > > Compile either a limited toolset or a complete API as gforth primitives > that use dynamicly linked access to the Xlib, GTK, ncurses, etc. shared > system libraries. Could the gforth compilation method use the system > libraries this way?
Yes, but you run into troubles with compile time and space requirements once you add more than a few hundred primitives. Another way is to use the C interface in lib.fs to get to the C routines. Currently Bernd is integrating a new low-level interface based on ffcall (which is more powerful and portable than the current interface), but the lib.fs interface will stay the same. BTW, does someone use the low-level words of the current interface (ICALL1 etc.), or can we eliminate this? > Use filesystem or kernel pipes to communicate with a toolbox program. A > toolbox language would add yet another API to perfect, learn, forget, > maintain, cause compatibility and security issues, and become obsolete. Yes. IIRC Marcel Hendrix pursued this approach once. - anton --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
