2
0

testn.pp 469 B

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