man pages section 3: Curses Library Functions

Exit Print View

Updated: July 2014
 
 

flash(3XCURSES)

Name

beep, flash - activate audio-visual alarm

Synopsis

cc [ flag... ] file... –I /usr/xpg4/include –L /usr/xpg4/lib \
–R /usr/xpg4/lib –lcurses [ library... ]

c89 [ flag... ] file... –lcurses [ library... ]
 
#include <curses.h>

int beep(void);
int flash(void);

Description

The beep() and flash() functions produce an audio and visual alarm on the terminal, respectively. If the terminal has the capability, beep() sounds a bell or beep and flash() flashes the screen. One alarm is substituted for another if the terminal does not support the capability called (see terminfo(4) bel and flash capabilities). For example, a call to beep() for a terminal without that capability results in a flash.

Return Values

These functions always return OK.

Errors

None.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Unsafe
Standard

See also

libcurses(3XCURSES), terminfo(4), attributes(5), standards(5)