Source Code File 03-01_twinkle
03-01_twinkle.c
#include <ncurses.h>
int main()
{
initscr();
attron(A_BOLD);
addstr("Twinkle, twinkle little star\n");
attron(A_BLINK);
addstr("How I wonder what you are.\n");
attroff(A_BOLD);
addstr("Up above the world so high,\n");
addstr("Like a diamond in the sky.\n");
attrset(A_NORMAL);
addstr("Twinkle, twinkle little star\n");
addstr("How I wonder what you are.\n");
refresh();
getch();
endwin();
return 0;
}
Output Screenshot

Notes
* The output screenshot is from a terminal that lacks the blinking text attribute. Other terminals may not output the proper text output.
Copyright © 1997-2025 by QPBC.
All rights reserved
