root/misc/tappeto.sh

Revision 966, 1.2 kB (checked in by alpt, 2 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #!/bin/bash
2 #
3 #                                tappeto.sh
4 #
5 #                http://freaknet.org/alpt/src/misc/tappeto.sh
6 #
7 # --
8
9 # Optical illusion: is the string shifting to the left or to the right?
10 #
11 # Tip: If you can't notice the illusion, try to concentrate on an extremity of
12 #      the string, than after 10 seconds watch the other extremity.
13 #
14 # --
15 #
16 # Tue Aug 29 22:01:08 CEST 2006 - Mazara Del Vallo
17 #
18 # AlpT (@freaknet.org)
19 #
20
21 if [ ! -f /tmp/.zigurrat_tappeto ] || [ "$1" == "help" -o "$1" == "-h" ]
22 then
23         printf "\tYou will see a shifting string.\n"
24         printf "\tCan you understant to what side is it shifting?\n"
25         printf "\tTo the left or to the right?\n"
26         echo ""
27        
28         printf "\t\t\t10\r"; sleep 1
29         printf "\t\t\t 9\r"; sleep 1
30         printf "\t\t\t 8\r"; sleep 1
31         printf "\t\t\t 7\r"; sleep 1
32         printf "\t\t\t 6\r"; sleep 1
33         printf "\t\t\t 5\r"; sleep 1
34         printf "\t\t\t 4\r"; sleep 1
35         printf "\t\t\t 3\r"; sleep 1
36         printf "\t\t\t 2\r"; sleep 1
37         printf "\t\t\t 1\r"; sleep 1
38
39         touch /tmp/.zigurrat_tappeto
40 fi
41
42 clear
43 while [ 0 ] ; do
44         printf "        =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\r"
45         sleep 0.2
46         printf "        -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r"
47         sleep 0.2;
48 done
Note: See TracBrowser for help on using the browser.