#include #include #include redraw( WINDOW *win) { touchwin(win); wrefresh(win); } main() { char ch; WINDOW *win1, *win2; initscr(); win1=newwin(3,60,10,10); win2=newwin(10,20,5,5); standout(); addstr("This is a string"); standend(); refresh(); wprintw(stdscr,"\ntralarilaro "); refresh(); wgetch(stdscr); wprintw(win2,"\n edo\n einai\n window\n arithmos\n 2"); box(win2,'2','2'); wrefresh(win2); wgetch(stdscr); wprintw(win1,"\n that's window 1"); wprintw(win1," believe it or not!"); box(win1,'*','*'); wrefresh(win1); wgetch(stdscr); delwin(win1); touchwin(stdscr); refresh(); redraw(win2); ch=wgetch(stdscr); delwin(win2); touchwin(stdscr); refresh(); wprintw(stdscr,"\nkai pali piso sto screen"); wprintw(stdscr,"\n gia na min sou po oti"); wprintw(stdscr,"\n gia ne bgeis apo to win2"); wprintw(stdscr,"\n patises: %c\n",ch); refresh(); wgetch(stdscr); }