Originally Posted by irmin
In bash/sh you will do
while true; do showkey -k >> mylog; done
Hi! I tried the code in the shell, it is working fine....but when I switch to another app(Word Processor etc), or switch to another terminal....it doesn't work.
Pretty stupid problem now.....it works normally if I remove >>mylog, the function showkey terminates and restarts on its own.
What does the >>mylog mean? Does the showkey function write the captured keypresses, maps it to some data structure present in mylog, and write out the equivalent alphanumeric characters on to the console?