Source Code File 03-04_yellowred
03-04_yellowred.c
#include <ncurses.h> int main() { initscr(); start_color(); init_pair(1,COLOR_YELLOW,COLOR_RED); addstr("Normal text\n"); attrset(COLOR_PAIR(1) | A_BOLD); addstr("Colored text. Wee!\n"); attrset(A_NORMAL); addstr("Back to normal."); refresh(); getch(); endwin(); return(0); }
Output Screenshot
Copyright © 1997-2024 by QPBC.
All rights reserved