Programming Guide


Issues a beep from the terminal

void sm_bel(void);


sm_bel causes the terminal to beep, usually by transmitting the ASCII BEL code to it. If there is a BELL 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 a BEL, because certain displays use BEL 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)