Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #9629

Re: colorForth on Linux

From David Kuehling <dvdkhlng@gmx.de>
Newsgroups comp.lang.forth
Subject Re: colorForth on Linux
Date 2012-02-20 00:16 +0100
Message-ID <87haymo1mv.fsf@snail.Pool> (permalink)
References <87d39b21a4.fsf@snail.Pool>

Show all headers | View raw


>>>>> "David" == David Kuehling <dvdkhlng@gmx.de> writes:

> Hi, the Linux ports of colorForth don't seem to be actively maintained
> currently, so I thought I'd post about my experience here.  The
> XcolorForth/GLcolorForth ports were done by Mark Slicker, whose
> website seems to have fallen victim to bit-rot.  The only copies I can
> find are those hosted by Tim Neitz [1] or by the ForthFreak wiki [2].

> [1] http://www.dnd.utwente.nl/~tim/colorforth/mslicker/GLcolorForth/
> [2] http://forthfreak.net/index.cgi?colorForth

Short addition: not only does the 'compile' script of GLcolorForth need
some fixing; also the keyboard input handling code does not work
properly on my Debian Squeeze system: keyboard events take many seconds
to be delivered.  This short patch to 'main.c' fixes the problem here:

--8<--
Index: /trunk/forth/glcolorforth/main.c
===================================================================
--- /trunk/forth/glcolorforth/main.c	(revision 450)
+++ /trunk/forth/glcolorforth/main.c	(revision 452)
@@ -59,6 +59,10 @@
 int key () {
     XEvent event;
-    if (XPending(display) > 0) {
-	XNextEvent (display, &event);
+    
+    /* 2011-02-19/david : added Xsync, made it loop below */
+    XSync(display, False);
+    
+    while (XPending(display) > 0) {
+        XNextEvent (display, &event);
 	switch (event.type) {
 	case KeyPress:
--8<--

For now I've put a fixed version on my SVN server:
http://mosquito.dyndns.tv/freesvn/trunk/forth/glcolorforth/ , but might
eventually move everything to sourceforge.

cheers,

David
-- 
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205  D016 7DEF 5323 C174 7D40

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

colorForth on Linux David Kuehling <dvdkhlng@gmx.de> - 2012-02-19 00:02 +0100
  Re: colorForth on Linux David Kuehling <dvdkhlng@gmx.de> - 2012-02-20 00:16 +0100
  Re: colorForth on Linux Mark <mark.slicker@gmail.com> - 2012-02-24 21:39 -0800
    Re: colorForth on Linux David Kuehling <dvdkhlng@gmx.de> - 2012-02-26 02:00 +0100
      Re: colorForth on Linux Mark <mark.slicker@gmail.com> - 2012-02-26 10:13 -0800

csiph-web