BEEP(3XCURSES) X/Open Curses Library Functions BEEP(3XCURSES)
beep, flash - activate audio-visual alarm
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);
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(5) bel and flash capabilities). For
example, a call to beep() for a terminal without that capability
results in a flash.
These functions always return OK.
None.
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Standard |
+--------------------+-----------------+
|MT-Level | Unsafe |
+--------------------+-----------------+
libcurses(3XCURSES), terminfo(5), attributes(7), standards(7)
June 5, 2002 BEEP(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(5) 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(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Standard |
+--------------------+-----------------+
|MT-Level | Unsafe |
+--------------------+-----------------+
SEE ALSO
libcurses(3XCURSES), terminfo(5), attributes(7), standards(7)
June 5, 2002 BEEP(3XCURSES)