ncrt.pp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Unit nCrt;
  2. {---------------------------------------------------------------------------
  3. CncWare
  4. (c) Copyright 1999-2000
  5. Portions copyright the FreePascal Team
  6. ---------------------------------------------------------------------------
  7. Filename..: ncrt.pp
  8. Programmer: Ken J. Wright, [email protected]
  9. Date......: 03/01/99
  10. Purpose - A crt replacement using ncurses.
  11. -------------------------------<< REVISIONS >>--------------------------------
  12. Ver | Date | Prog| Description
  13. -------+----------+-----+-----------------------------------------------------
  14. 1.00 | 03/01/99 | kjw | Initial Release.
  15. ------------------------------------------------------------------------------
  16. 2.00 | 12/13/99 | kjw | nCrt is now a drop-in replacement for the standard
  17. | FPC crt unit. All the previous OOP features have
  18. | been moved to a new unit, oCrt (object crt).
  19. | See ocrt.pp & ncrt.inc for a complete revision
  20. | history.
  21. ------------------------------------------------------------------------------
  22. }
  23. Interface
  24. Uses
  25. {$ifdef Unix}
  26. {$ifdef ver1_0}
  27. linux,
  28. {$else}
  29. unix,
  30. {$endif}
  31. {$endif}
  32. ncurses;
  33. {$i ncrt.inc}
  34. Begin
  35. { initialize ncurses }
  36. If StartCurses(ActiveWn) Then
  37. { defaults, crtassign, etc. }
  38. nInit
  39. Else
  40. CursesFailed;
  41. End. { of Unit nCrt }
  42. {
  43. $Log$
  44. Revision 1.3 2002-09-07 15:43:01 peter
  45. * old logs removed and tabs fixed
  46. Revision 1.2 2002/05/31 11:54:33 marco
  47. * Renamefest for 1.0, many 1.1.x spots patched also.
  48. Revision 1.1 2002/01/29 17:55:17 peter
  49. * splitted to base and extra
  50. }