http://bitbucket.org/rminnich/plan9tools/src/tip/catmouse.c
I sort of wanted to learn what it would take to interpose a program between /dev/mouse and something else. Now I've learned and this clunker is the result. It's sort of amusing. to test, get thee to a window and: 8.catmouse rio obviously the map() function could use some improvement :-) ron