I'm just pasting the content of pageturn file:
echo $$ > /tmp/pageturn.pid
_FUNCTIONS=/etc/rc.d/functions
[ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS}
#big loop
while true; do
{
#write input to temporary file
waitforkey > /tmp/key
#read which key was pressed
case "$(cat /tmp/key)" in
"46 1")
next_page;;
"28 1")
prev_page;;
esac
}
done
Thank you twobob
|