testn.pp 401 B

123456789101112131415161718192021222324252627
  1. program testn;
  2. uses ncurses;
  3. var
  4. win : pWINDOW;
  5. begin
  6. if initscr=Nil then halt(1);
  7. start_color;
  8. win:= newwin (10,60,10,10);
  9. if win=nil then
  10. begin
  11. endwin;
  12. halt(1);
  13. end;
  14. init_pair(1,COLOR_WHITE,COLOR_BLUE);
  15. wbkgd(win, COLOR_PAIR(1));
  16. erase;
  17. refresh;
  18. box(win, ACS_VLINE, ACS_HLINE);
  19. wrefresh(win);
  20. mvwaddstr(win,1,1,'Press any key to continue !');
  21. wrefresh(win);
  22. raw;
  23. wgetch(win);
  24. endwin;
  25. end.