   How to use the snooper program
   ==============================

The snooper program generates keyboard sequences within X11
with the help of the Xtest extension for a specific terminal
emulator like the XTerm.     Beside this it also reads the
response of the specified terminal emulator as it would do
a command shell.

To make sure not to be fooled by e.g. Ctrl+Alt+Backspace
one should use a nested Xserver like Xephyr:

	Xephyr :1 -screen 800x600x24 -nozap &

and a minimalist window/session managers

	twm -display :1 &

Within the twm an XTerm can be stared by pressing the
first mouse button and starting an XTerm.

The known options of the snooper program are

    -kp           Switch terminal into keypad mode if any
    -ml		  Skip mlterm switches Ctrl+F1 upto Ctrl+F4
    -gnome	  Skip konsole switches Ctrl+F1, Ctrl+F11
    -kde	  Skip konsole switches Ctrl+(Shift+)F1/F11
    -id <window>  Specify the window ID of e.g. konsole


Examples:

	xterm  -T snooper -e ./snooper     snooper xterm.keys
	mlterm -T snooper -e ./snooper -ml snooper mlterm.keys
	urxvt  -T snooper -e ./snooper     snooper urxvt.keys
	kterm  -T snooper -e ./snooper     snooper kterm.keys

	konsole
		bash> xlsclients -l | grep -B4 'Command:.*konsole'
		bash> exec snooper -kde -id <id> konsole.keys

	gnome-terminal --disable-sound --sm-disable \
		--title=snooper -e "snooper -gnome snooper xxx"
