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
* Blinking is disabled on my terminal window. And thank God.
Copyright © 1997-2024 by QPBC.
All rights reserved