Source Code File 03-09_notice
03-09_notice.c
#include <ncurses.h> int main() { initscr(); addstr("Attention!\n"); beep(); refresh(); getch(); addstr("I said, ATTENTION!\n"); flash(); refresh(); getch(); endwin(); return 0; }
Output Screenshot
(Click image to update.)
Notes
* My terminal window beeped the first time. The second time it flashed, then displayed the text.
* The flash feature might not be enabled on the terminal window.
* Some terminals may beep in addition to or instead of flashing.
Copyright © 1997-2025 by QPBC.
All rights reserved