Source Code File 04-01_charattrib
04-01_charattrib.c
#include <ncurses.h> int main() { initscr(); addch('c'); addch(A_BOLD | 'a'); addch(A_REVERSE | 't'); refresh(); getch(); endwin(); return(0); }
Output Screenshot
Notes
* Multiple attributes can be mixed in a single statement, just use more attribute constants and the | or operator.
Copyright © 1997-2024 by QPBC.
All rights reserved