📄 scriptdemo
字号:
# A little demonstration of the possibilities of "runscript".# This script can be executed by typing: "runscript scriptdemo".## Adjust the stty's below to your system: BSD-like or SysV-like.# Linux ofcourse accepts both :-)# goto mainleft: print "\010 \010\010*\c" returnright: print "\010 *\c" returnmain:# ! stty -echo cbreak ! stty -echo -icanon min 1 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 ! stty icanon echo min 5 sleep 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -