#include <curses.priv.h>
#include <term.h> /* beep, flash */
-MODULE_ID("$Id: lib_beep.c,v 1.5 1998/02/11 12:13:55 tom Exp $")
+MODULE_ID("$Id: lib_beep.c,v 1.7 1999/10/22 21:39:09 tom Exp $")
/*
* beep()
int beep(void)
{
+ int res = ERR;
+
T((T_CALLED("beep()")));
/* FIXME: should make sure that we are not in altchar mode */
if (bell) {
TPUTS_TRACE("bell");
- return(putp(bell));
+ res = putp(bell);
+ _nc_flush();
} else if (flash_screen) {
TPUTS_TRACE("flash_screen");
- return(putp(flash_screen));
+ res = putp(flash_screen);
+ _nc_flush();
}
- else
- returnCode(ERR);
+
+ returnCode(res);
}