ncrt.pp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. baseunix,
  27. termio,
  28. {$endif}
  29. ncurses,
  30. dos; {dos needed for TextRec}
  31. {$i ncrt.inc}
  32. Begin
  33. { initialize ncurses }
  34. If StartCurses(ActiveWn) Then
  35. { defaults, crtassign, etc. }
  36. nInit
  37. Else
  38. CursesFailed;
  39. End. { of Unit nCrt }