home *** CD-ROM | disk | FTP | other *** search
- # A little demonstration of the possibilities of "runscript".
- # This script can be executed by typing: "runscript scriptdemo".
-
- goto main
- left:
- print "\010 \010\010*\c"
- return
- right:
- print "\010 *\c"
- return
- main:
- ! stty -echo cbreak
- verbose off
- print Demo! press 'q' to move left, 'w' to move right, 'ESC' to stop.
- print " *\c"
- expect {
- "q" gosub left
- "w" gosub right
- "\033" break
- }
- print \nEnd of demonstration.
- ! stty -cbreak echo
- sleep 1
-