beep(3x) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

beep(3x)

curs_beep(3x)                    Library calls                   curs_beep(3x)

NAME
       beep, flash - ring the (visual) bell of the terminal with curses

SYNOPSIS
       #include <ncursesw/curses.h>

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

DESCRIPTION
       beep and flash alert the terminal user: the former by sounding the ter‐
       minal's  audible alarm, and the latter by visibly attracting attention.
       Commonly, a terminal implements a visual bell by momentarily  reversing
       the  character  foreground and background colors on the entire display;
       even a monochrome device can do this.  These functions each attempt the
       other alert type if the one requested is unavailable.   If  neither  is
       available, curses performs no action.  Nearly all terminals have an au‐
       dible  alert mechanism such as a bell or piezoelectric buzzer, but only
       some can flash the screen.

RETURN VALUE
       These functions return OK on success and ERR on failure.

       In ncurses, beep and flash return OK if the terminal type supports  the
       corresponding  capability: bell (bel) for beep and flash_screen (flash)
       for flash.  Otherwise they return ERR.

EXTENSIONS
       In ncurses, these functions can return ERR.

PORTABILITY
       X/Open Curses Issue 4 describes these functions.  It specifies no error
       conditions for them.

       On SVr4 curses, they always return OK, and X/Open Curses specifies them
       as doing so.

HISTORY
       SVr2 (1984) introduced beep and flash.


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

       box; cbp-1 | cbp-1 l | l .  ATTRIBUTE TYPE ATTRIBUTE VALUE = Availabil‐
       ity   library/ncurses = Stability Uncommitted

SEE ALSO
       curses(3X), terminfo(5)



NOTES
       Source code for open source software components in Oracle  Solaris  can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at:
       https://github.com/oracle/solaris-userland

       The original community source was downloaded from:
       https://invisible-mirror.net/archives/ncurses/cur‐
       rent/ncurses-6.5-20250614.tgz

       Further information about this software can be found on the open source
       community website at https://invisible-island.net/ncurses/.

ncurses 6.5                       2025-02-01                     curs_beep(3x)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3