2 /***************************************************************************
4 ****************************************************************************
5 * ncurses is copyright (C) 1992-1995 *
7 * zmbenhal@netcom.com *
9 * esr@snark.thyrsus.com *
11 * Permission is hereby granted to reproduce and distribute ncurses *
12 * by any means and for any fee, whether alone or as part of a *
13 * larger distribution, in source or in binary form, PROVIDED *
14 * this notice is included with any such distribution, and is not *
15 * removed from any of its header files. Mention of ncurses in any *
16 * applications linked with it is highly appreciated. *
18 * ncurses comes AS IS with no warranty, implied or expressed. *
20 ***************************************************************************/
26 * Routines beep() and flash()
30 #include <curses.priv.h>
31 #include <term.h> /* beep, flash */
33 MODULE_ID("$Id: lib_beep.c,v 1.3 1997/02/02 00:27:01 tom Exp $")
38 * Sound the current terminal's audible bell if it has one. If not,
39 * flash the screen if possible.
45 T((T_CALLED("beep()")));
47 /* FIXME: should make sure that we are not in altchar mode */
51 } else if (flash_screen) {
52 TPUTS_TRACE("flash_screen");
53 return(putp(flash_screen));
62 * Flash the current terminal's screen if possible. If not,
63 * sound the audible bell if one exists.
69 T((T_CALLED("flash()")));
71 /* FIXME: should make sure that we are not in altchar mode */
73 TPUTS_TRACE("flash_screen");
74 returnCode(putp(flash_screen));
77 returnCode(putp(bell));