1 /* Public Domain Curses */
5 RCSID("$Id: beep.c,v 1.34 2008/07/13 16:08:17 wmcbrine Exp $")
7 /*man-start**************************************************************
16 beep() sounds the audible bell on the terminal, if possible;
17 if not, it calls flash().
19 flash() "flashes" the screen, by inverting the foreground and
20 background of every cell, pausing, and then restoring the
24 These functions return OK.
26 Portability X/Open BSD SYS V
30 **man-end****************************************************************/
34 PDC_LOG(("beep() - called\n"));
48 PDC_LOG(("flash() - called\n"));
50 /* Reverse each cell; wait; restore the screen */
52 for (z
= 0; z
< 2; z
++)
54 for (y
= 0; y
< LINES
; y
++)
55 for (x
= 0; x
< COLS
; x
++)
56 curscr
->_y
[y
][x
] ^= A_REVERSE
;