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
|