View Single Post
Old 10-17-2012, 01:41 PM   #38
anonimo200
Enthusiast
anonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it isanonimo200 knows what time it is
 
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
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
anonimo200 is offline   Reply With Quote