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 | (logical OR) operator.
Copyright © 1997-2025 by QPBC.
All rights reserved
