From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Fri, 4 Jun 2010 08:34:48 -0700 Message-ID: From: ron minnich To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: [9fans] a very silly program Topicbox-Message-UUID: 2f260d64-ead6-11e9-9d60-3106f5b1d025 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