ncrt.pp 2.0 KB

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