DESCRIPTION OF THE BEHAVIOR:
1) The bash script
beeping, does a
beep, waits 10 seconds, and loops until interrupted.
2) All that is visible is the cursor, as expected. In the first iteration, after the beep 'alarm' sounds, the cursor is blinking. In the second iteration, it is not blinking. This alternating blinking/not-blinking continues until the ctl-C stops execution of
beeping.
EXECUTION-TIME EXAMPLE:
Quote:
me@kengfu:~$ cat bin/beep
echo $'\a'
me@kengfu:~$
me@kengfu:~$ cat bin/beeping
while true
do
bin/beep
sleep 10
done
me@kengfu:~$ bin/beeping
^Cme@kengfu:~$
|
THE STUPID QUESTIONS:
1. Does this occur for you?
2. Can anyone explain why does the cursor stop blinking? I can't.
COMMENTS:
There are no tricks, or subterfuge.
P.S.
To be completely rigorous, in actuality the code is tab-indented and appears like this:
while true
dobin/beep
sleep 10
done
but the 'code' formatting used in this post mungs the indentation, sorry...
OPERATING SYSTEM & HARDWARE SPECIFICS:
Click on this to see full-size: