ncrt.pp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. baseunix,
  30. unix,
  31. {$endif}
  32. {$endif}
  33. ncurses;
  34. {$i ncrt.inc}
  35. Begin
  36. { initialize ncurses }
  37. If StartCurses(ActiveWn) Then
  38. { defaults, crtassign, etc. }
  39. nInit
  40. Else
  41. CursesFailed;
  42. End. { of Unit nCrt }
  43. {
  44. $Log$
  45. Revision 1.4 2003-09-27 12:19:20 peter
  46. * fixed for unix
  47. Revision 1.3 2002/09/07 15:43:01 peter
  48. * old logs removed and tabs fixed
  49. Revision 1.2 2002/05/31 11:54:33 marco
  50. * Renamefest for 1.0, many 1.1.x spots patched also.
  51. Revision 1.1 2002/01/29 17:55:17 peter
  52. * splitted to base and extra
  53. }