Programming Guide



sm_bel

Issues a beep from the terminal

void sm_bel(void);

Description

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.

Example

#include <smdefs.h>

/* Beep if cost is too high. */
if (sm_n_dblval("cost") > 1000.00)
sm_bel();