BELL
Command: #bell {flash|focus|margin|ring|volume} {argument}
The #bell command without an argument will ring the terminal bell.
Example: #action {Bubba tells you} {#bell}
If you aren't watching the screen this could be useful if you don't
want to miss out on a conversation with Bubba. Alternatively you can
use #system to play a sound file.
Some terminals will allow you to use VT100 Operating System Commands
to change the terminal's bell behavior which can be used to flash the
taskbar icon and or focus the window on receival of a bell.
Example: #action {Bubba tells you} {#screen save title;#screen set title Tell!;
#bell ring;#delay 10 #screen load title}
The above example will save your window title, change the title to
'Tell!', ring the bell, next reset the window title after 10 seconds.
It's possible to set the terminal to pop to the foreground upon
ringing of the alarm bell.
Example: #bell focus on;#bell ring;#bell focus off
It's possible to adjust the alarm bell volume on some terminals.
Example: #loop {1} {8} {cnt} {#line substitute variables
#delay {$cnt} {#show Volume $cnt: #bell volume $cnt;#bell}
Related: screen
|