ncrt.pp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 freebsd}
  26. {$ifdef ver1_0}
  27. linux,
  28. {$else}
  29. unix,
  30. {$endif}
  31. {$endif}
  32. {$ifdef linux}
  33. {$ifndef freebsd}
  34. {$ifdef ver1_0}
  35. linux,
  36. {$else}
  37. unix,
  38. {$endif}
  39. {$endif}
  40. {$endif}
  41. ncurses;
  42. {$i ncrt.inc}
  43. Begin
  44. { initialize ncurses }
  45. If StartCurses(ActiveWn) Then
  46. { defaults, crtassign, etc. }
  47. nInit
  48. Else
  49. CursesFailed;
  50. End. { of Unit nCrt }
  51. {
  52. $Log$
  53. Revision 1.6 2001-04-19 12:40:56 marco
  54. * Fixed freebsd thingy
  55. Revision 1.5 2001/04/08 12:27:55 peter
  56. * made it compilable with both 1.0.x and 1.1
  57. Revision 1.4 2001/01/21 21:38:52 marco
  58. * renamefest in packages
  59. Revision 1.3 2000/08/29 05:51:09 michael
  60. + Merged changes and additions from fixbranch
  61. Revision 1.2 2000/07/13 11:33:27 michael
  62. + removed logs
  63. }