Hi. I think what you should do is using mice.c alone, withouth the rest of gpm. You program can open the mouse port (whatever it is) directly, without passing through gpm. [disclaimer, I wrote stuff below before verifying you are already using the GPL] Note, though, that mice.c is GPL, so your whole executable must be GPL (or not distributed at all). If this is a problem, wrap mice.c into a (GPL) main that prints events to stdout, your program, then, can popen() that tool and get an fd to read data from. If you choose this approach, I think the wrapper may be a useful addition to the official gpm package, provided you also update the manual with all relevant information, and the maintainer agrees with me about such usefullness. Best /alessandro -- Alessandro Rubini, free software specialist. Device drivers, embedded systems, courses. http://ar.linux.it/