Hi. I am trying the following piece of code:
/***************************** start of code *****************************/
#include <ncurses.h>
int main()
{
WINDOW *w;
initscr();
start_color();
box(stdscr, 0, 0);
mvwchgat(stdscr, 0, 0, 6, A_BLINK, 1, NULL);
wrefresh(stdscr);
w = newwin(5, 5, 10, 10);
box(w, 0, 0);
mvwchgat(w, 0, 0, -1, A_BLINK, 1, NULL);
wrefresh(w);
getch();
mvwchgat(stdscr, 0, 8, 6, A_BLINK, 1, NULL);
wrefresh(stdscr);
getch();
endwin();
return 0;
}
/***************************** end of code *****************************/
The changes after the first getch() doesn't seem to do anything. Is there
something I need to do to show the update on the screen?
Also, the call to `box` shows a nice proper rectangular box. But when I do
chgat on them, they show up as ascii chars (eg. l,q,k,x etc). Is there any
way I can chgat and still show the nice straight-line characters?