testn.pp 554 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. $Id$
  3. Simple ncurses test
  4. }
  5. program testn;
  6. uses
  7. ncurses;
  8. var
  9. win : pWINDOW;
  10. begin
  11. if initscr=Nil then halt(1);
  12. start_color;
  13. win:= newwin (10,60,10,10);
  14. if win=nil then
  15. begin
  16. endwin;
  17. halt(1);
  18. end;
  19. init_pair(1,COLOR_WHITE,COLOR_BLUE);
  20. wbkgd(win, COLOR_PAIR(1));
  21. erase;
  22. refresh;
  23. box(win, ACS_VLINE, ACS_HLINE);
  24. wrefresh(win);
  25. mvwaddstr(win,1,1,'Press any key to continue !');
  26. wrefresh(win);
  27. raw;
  28. wgetch(win);
  29. endwin;
  30. end.
  31. {
  32. $Log$
  33. Revision 1.2 1999-11-24 23:42:00 peter
  34. * fpcmake updates
  35. }