Source Code File 03-07_bgcolor1
03-07_bgcolor1.c
#include <ncurses.h> int main() { initscr(); start_color(); init_pair(1,COLOR_WHITE,COLOR_BLUE); bkgd(COLOR_PAIR(1)); addstr("This is white text"); refresh(); getch(); endwin(); return 0; }
Output Screenshot
Copyright © 1997-2025 by QPBC.
All rights reserved