Source Code File 04-09_addchstr
04-09_addchstr.c
#include <ncurses.h>
int main()
{
chtype string[] = {
'H' | A_BOLD, 'e', 'l' | A_REVERSE,
'l' | A_REVERSE, 'o', '!' | A_UNDERLINE,
'\0'
};
initscr();
addchstr(string);
refresh();
getch();
endwin();
return 0;
}
Notes
* Output for this code is identical to output for 04-08_chtypestring.c.
Copyright © 1997-2025 by QPBC.
All rights reserved
