It does not quite work
The idea is to call any text in advert (as the example)
and display on screen, one character after another - a bit like a ticker tape
- As I am such a useless programmer I will have to resign from Puppy hacker school
http://puppylinux.org/wikka/PuppySchoolProgramming
There must be a simpler more efficient way to use yaf-splash to achieve this?
Grateful for any help.
Do I need an array (whatever that is)?
code and text file enclosed as a tar file
Code: Select all
#!/bin/bash
# Lobster Jan 2012 yellow autocue using yaf-splash
# will read the text file "advert"
# and display one character after another
INPUT=advert
clear
#plainchar=" "
while IFS= read -r -n 100 char
do
# display one character at a time
sleep 0.05
yaf-splash -bg yellow -fontsize x-large -timeout 1 -text $char
# yaf-splash -bg yellow -fontsize x-large -timeout 1 -text $plainchar
done < "$INPUT"