Programming Guide |
Issues a beep from the terminal
void sm_bel(void);
sm_bel
causes the terminal to beep, usually by transmitting the ASCIIBEL
code to it. If there is aBELL
entry in the video file,sm_bel
transmits that instead. This usually causes the terminal to flash.Even if there is no
BELL
entry, use this function instead of sending aBEL
, because certain displays useBEL
as a graphics character.This function is automatically called when message text begins with
%B
.
#include <smdefs.h>
/* Beep if cost is too high. */
if (sm_n_dblval("cost") > 1000.00)
sm_bel();