TinTin++ Mud Client Manual
Bell
space
Syntax: #bell
space
The #bell command will ring the terminal bell, it's obsolete and should be avoided, instead use #showme {\a} to send the terminal alarm character to the terminal.
space
Example: #action {Bubba tells you} {#showme {\a\}
space
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. Ending a #showme with a \ prevents a newline from being added. #showme {\a} will result in a blank line, while #showme {\a\} will not.
space
Some terminals will allow you to use VT100 Operating System Commands to change the terminal's title which can be used as a visual alert.
space
Example:
#action {Bubba tells you}
{
  #showme {\e[22;0t\e]0;New Message\e\a\};#delay 10 #showme {\e[23;0t\}
}
space
The above example will save your window title, change the title to 'New Message', next reset the window title after 10 seconds.
space
It's possible to set the terminal to pop to the foreground upon ringing of the alarm bell.}
space
Example: #showme {pop up alarm: \e[?1043h\a\e[?1043l}
space
It's possible to adjust the alarm bell volume on some terminals.
space
Example:
#loop {1} {8} {cnt}
{
  #line substitute variables #delay {$cnt} #showme {Volume $cnt: \e[$cnt t\a}
}
space
See also: Cr and Forall.
space