nCrt is a drop-in replacement for the standard FPC crt unit. The FPC crt unit
works well mostly only with the VT100 terminal type and the Linux console.
nCrt uses the ncurses library for all it's screen manipulation, so the big
gain is in terminal independence. nCrt contains all of the procedures,
functions, and variables available in the standard crt unit.
Michael's
ncurses unit is
required.
The nCrt package also includes a second unit, oCrt which includes
all of the functionality of nCrt, plus some BP7 style OOP extensions for
creating and manipulating multiple, overlapping windows and dynamic menus.
Features include background window creation, showing, hiding, borders, colors,
titles, etc. oCrt requires the ncurses (4.2 or later),
panel, and
menu libraries listed below.
The ncurses, panel, and menu units are included in the nCrt package.
Current revision is 2.17.00, March 07, 2003.
Online Documentation. This is a work in progress, so not everything is documented yet, but it's being worked on ;-).
timelibc is a small subset of the Linux libc date/time functions. This unit
includes a version of the GetDate() and GetTime() functions which return values
that are correct for the current timezone and daylight settings. The standard
FPC linux unit returns values from the kernel. These values are known to be
inaccurate with regards to timezones and daylight info.
NOTE: As of Dec,02 1999, the timezone and daylight problems have
been remedied in the linux
unit of the FPC sources. Thanks Peter!
pwdlibc is a subset of the Linux libc password and group functions. This unit contains functions for retrieving information from the passwd and group files using either an ID or a name.
panel is an interface to the Linux panel library. panel is an extension to the ncurses library which handles multiple and overlapping windows. The ncurses library only handles tiled windows. Look at the tnWindow object in the oCrt unit above for an example of how to use the panel functions.
menu is an interface to the Linux menu library. menu is an extension to the ncurses library which provides a powerful set of functions for creating menus. Look at the tnMenu object in the oCrt unit above for an example of how to use the menu functions.
csv is a library of functions to read data from (C)omma (S)eparated (V)ariables ascii files. A line is read from the file as a single record and broken up and stored as individual fields of the record.
daemon is a program to demonstrate how to write a daemon for Linux using FPC. This is a functional program that can be run and observed. Then simply modify it to suit your own specific requirements.