From: Mike M. <mi...@mi...> - 2000-09-10 20:44:59
|
>From: Paolo Amoroso <am...@mc...> >To: fre...@co... >Subject: Do Free CLIM keyboard events work with CLISP/NCLX? >Date: Sun, 10 Sep 2000 20:42:40 +0200 > >A problem with the Free CLIM address book demo seems to suggest that CLIM >keyboard event handling does not work with CLISP/NCLX. CLISP with MIT CLX >does work fine with the same demo, but it would be better to have the >option of using NCLX because it is much faster. > >The problem is related to an unimplemented function of NCLX, >XLIB:KEYCODE->CHARACTER. It is used in CLIMI::EVENT-HANDLER >(clx-port.lisp), and this probably breaks all keyboard event handling. > >I did all the tests with CLISP 2000-03-06 under i386 Red Hat Linux 6.2. >After starting the address book demo with an NCLX image, as soon as I hit >any key I get the following error: > >*** - FUNCALL: the function XLIB:KEYCODE->CHARACTER is undefined Yup, NCLX in 2000-3-6 is broken. Look in the file new-clx/clx.f. You'll see that they didn't implement XLIB:KEYCODE->CHARACTER. Also, KEYSYM->CHARACTER doesn't do anything. (Otherwise, you could do keycode->keysym then keysym->character.) You'll need to complain to the CLisp guys. >XLIB:KEYCODE->CHARACTER (according to the CLX manual, it is called >KEYCODE-CHARACTER: is this a different function?) is not included in the >list of unimplemented or incomplete functions of the NCLX README, but it is >indeed undefined. I believe the manual is wrong. All of the translation functions are defined using "->" but the manual says "-" for them. I've never seen the original source for the CLX manual, so I don't know if this is a TeX error, a mistyping, or what. Mike McDonald mi...@mi... |