Quote:
Originally Posted by drauger
Is there any alternative to waitforkey which reads state of a key and goes further without waiting for key pressing?
|
I did "
waitforkey >/tmp/key &" which continues immediately, leaving waitforkey running in the background until a key is pressed, when it outputs the keypress value and quits. While waiting for a key, you can periodically check for a keypress in the main script with "
key=$(cat /tmp/key)". You just need to get creative and try stuff...