I would like to write a little program or two for the entertainment of my 18 month old daughter as she really likes banging around on the keyboard (or sometimes playing with the trackball mouse.
Can anybody tell me how to get keyboard input onto the root window to be re-directed into the stdin for a shell script, as I want to start up by making the screen change colours depending on what key she presses. Thanks in anticipation