CURS_BEEP(3CURSES) Curses Library Functions CURS_BEEP(3CURSES)

curs_beep, beep, flash - curses bell and screen flash routines

cc [ flag ... ] file ... -lcurses [ library ... ]
#include <curses.h>
int beep(void);

int flash(void);

The beep() and flash() routines are used to signal the terminal user. The routine beep() sounds the audible alarm on the terminal, if possible; if that is not possible, it flashes the screen (visible bell), if that is possible. The routine flash() flashes the screen, and if that is not possible, sounds the audible signal. If neither signal is possible, nothing happens. Nearly all terminals have an audible signal (bell or beep), but only some can flash the screen.

These routines always return OK.

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level Unsafe

curses(3CURSES), attributes(7)

The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>.

December 31, 1996 OmniOS