Source Code File 04-08_chtypestring
04-08_chtypestring.c
#include <ncurses.h> int main() { chtype string[] = { 'H' | A_BOLD, 'e', 'l' | A_REVERSE, 'l' | A_REVERSE, 'o', '!' | A_UNDERLINE, '\0' }; int x = 0; initscr(); while(string[x]) { addch(string[x]); x++; } refresh(); getch(); endwin(); return 0; }
Output Screenshot
Copyright © 1997-2025 by QPBC.
All rights reserved