View Single Post
Old 03-29-2012, 08:16 PM   #7
jmseight
Zealot
jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'jmseight knows the difference between 'who' and 'whom'
 
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
Hi,

This works for me when I telnet into the K3 via USB, but for some reason does not run well when I use it as a kite script.

Also, I think you can break a long line into the next line by the following slight mod:

#====================
# eicho - eink echo
# usage: eicho "text"
#--------------------
eicho() {
st=$1
ii=${#st}
while [ $ii -ge 0 ]
do
eips -z 2 38 # scroll
eips 0 39 "$(echo $st|tr ";{}\\\`!#$%^" _|cut -b-50)" # write to the bottom
st="$(echo $st | cut -b51-$ii)"
ii=$(( ii - 50 ))
done
}

which is good for "ls -l"

BTW, you are right about the "${s:a:b}" not working in a script. It worked fine in telnet does not work in script.

Thanks,
James

Thanks,
James
jmseight is offline   Reply With Quote