mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-14 13:16:22 +01:00
45 lines
1.4 KiB
ObjectPascal
45 lines
1.4 KiB
ObjectPascal
Unit nCrt;
|
|
{---------------------------------------------------------------------------
|
|
CncWare
|
|
(c) Copyright 1999-2000
|
|
Portions copyright the FreePascal Team
|
|
---------------------------------------------------------------------------
|
|
Filename..: ncrt.pp
|
|
Programmer: Ken J. Wright, ken@cncware.com
|
|
Date......: 03/01/99
|
|
|
|
Purpose - A crt replacement using ncurses.
|
|
|
|
-------------------------------<< REVISIONS >>--------------------------------
|
|
Ver | Date | Prog| Description
|
|
-------+----------+-----+-----------------------------------------------------
|
|
1.00 | 03/01/99 | kjw | Initial Release.
|
|
------------------------------------------------------------------------------
|
|
2.00 | 12/13/99 | kjw | nCrt is now a drop-in replacement for the standard
|
|
| FPC crt unit. All the previous OOP features have
|
|
| been moved to a new unit, oCrt (object crt).
|
|
| See ocrt.pp & ncrt.inc for a complete revision
|
|
| history.
|
|
------------------------------------------------------------------------------
|
|
}
|
|
Interface
|
|
|
|
Uses
|
|
{$ifdef Unix}
|
|
baseunix,
|
|
termio,
|
|
{$endif}
|
|
ncurses,
|
|
dos; {dos needed for TextRec}
|
|
|
|
{$i ncrt.inc}
|
|
|
|
Begin
|
|
{ initialize ncurses }
|
|
If StartCurses(ActiveWn) Then
|
|
{ defaults, crtassign, etc. }
|
|
nInit
|
|
Else
|
|
CursesFailed;
|
|
End. { of Unit nCrt }
|