xref: /freebsd/contrib/ncurses/README (revision 0e3d540892016a47f6a68ec9ba2879d35ce5f7c2)
10e3d5408SPeter Wemm-- $Id: README,v 1.17 1998/02/15 01:26:47 tom Exp $
20e3d5408SPeter Wemm-------------------------------------------------------------------------------
30e3d5408SPeter Wemm		README file for the ncurses package
40e3d5408SPeter Wemm
50e3d5408SPeter WemmSee the file ANNOUNCE for a summary of ncurses features and ports.
60e3d5408SPeter WemmSee the file INSTALL for instructions on how to build and install ncurses.
70e3d5408SPeter WemmSee the file NEWS for a release history and bug-fix notes.
80e3d5408SPeter WemmSee the file TO-DO for things that still need doing, including known bugs.
90e3d5408SPeter Wemm
100e3d5408SPeter WemmBrowse the file misc/ncurses-intro.html for narrative descriptions of how
110e3d5408SPeter Wemmto use ncurses and the panel, menu, and form libraries.
120e3d5408SPeter Wemm
130e3d5408SPeter WemmBrowse the file misc/hackguide.html for a tour of the package internals.
140e3d5408SPeter Wemm
150e3d5408SPeter WemmROADMAP AND PACKAGE OVERVIEW:
160e3d5408SPeter Wemm
170e3d5408SPeter WemmYou should be reading this file in a directory called:  ncurses-d.d, where d.d
180e3d5408SPeter Wemmis the current version number (see the dist.mk file in this directory for
190e3d5408SPeter Wemmthat).  There should be a number of subdirectories, including `c++', `form',
200e3d5408SPeter Wemm`man', `menu', `misc', `ncurses', `panel', `progs', `test', 'tack' and `Ada95'.
210e3d5408SPeter Wemm(The 'tack' program is distributed separately).
220e3d5408SPeter Wemm
230e3d5408SPeter WemmA full build/install of this package typically installs several libraries, a
240e3d5408SPeter Wemmhandful of utilities, and a database hierarchy.  Here is an inventory of the
250e3d5408SPeter Wemmpieces:
260e3d5408SPeter Wemm
270e3d5408SPeter WemmThe libraries are:
280e3d5408SPeter Wemm
290e3d5408SPeter Wemm	libncurses.a       (normal)
300e3d5408SPeter Wemm	libncurses.so      (shared)
310e3d5408SPeter Wemm	libncurses_g.a     (debug and trace code enabled)
320e3d5408SPeter Wemm	libncurses_p.a     (profiling enabled)
330e3d5408SPeter Wemm
340e3d5408SPeter Wemm	libpanel.a         (normal)
350e3d5408SPeter Wemm	libpanel.so        (shared)
360e3d5408SPeter Wemm	libpanel_g.a       (debug and trace code enabled)
370e3d5408SPeter Wemm
380e3d5408SPeter Wemm	libmenu.a          (normal)
390e3d5408SPeter Wemm	libmenu.so         (shared)
400e3d5408SPeter Wemm	libmenu_g.a        (debug enabled)
410e3d5408SPeter Wemm
420e3d5408SPeter Wemm	libform.a          (normal)
430e3d5408SPeter Wemm	libform.so         (shared)
440e3d5408SPeter Wemm	libform_g.a        (debug enabled)
450e3d5408SPeter Wemm
460e3d5408SPeter WemmThe ncurses libraries implement the curses API.  The panel, menu and forms
470e3d5408SPeter Wemmlibraries implement clones of the SVr4 panel, menu and forms APIs.  The source
480e3d5408SPeter Wemmcode for these lives in the `ncurses', `panel', `menu', and `form' directories
490e3d5408SPeter Wemmrespectively.
500e3d5408SPeter Wemm
510e3d5408SPeter WemmIn the `c++' directory, you'll find code that defines an interface to the
520e3d5408SPeter Wemmcurses, forms, menus and panels library packaged as C++ classes, and a demo program in C++
530e3d5408SPeter Wemmto test it.  These class definition modules are not installed by the 'make
540e3d5408SPeter Wemminstall.libs' rule as libncurses++.
550e3d5408SPeter Wemm
560e3d5408SPeter WemmIn the `Ada95' directory, you'll find code and documentation for an
570e3d5408SPeter WemmAda95 binding of the curses API, to be used with the GNAT compiler.
580e3d5408SPeter WemmThis binding is built by a normal top-level `make' if configure detects
590e3d5408SPeter Wemman usable version of GNAT (3.10 or above). It is not installed automatically.
600e3d5408SPeter WemmSee the Ada95 directory for more build and installation instructions and
610e3d5408SPeter Wemmfor documentation of the binding.
620e3d5408SPeter Wemm
630e3d5408SPeter WemmTo do its job, the ncurses code needs your terminal type to be set in the
640e3d5408SPeter Wemmenvironment variable TERM (normally set by your OS; under UNIX, getty(1)
650e3d5408SPeter Wemmtypically does this, but you can override it in your .profile); and, it needs a
660e3d5408SPeter Wemmdatabase of terminal descriptions in which to look up your terminal type's
670e3d5408SPeter Wemmcapabilities.
680e3d5408SPeter Wemm
690e3d5408SPeter WemmIn older (V7/BSD) versions of curses, the database was a flat text file,
700e3d5408SPeter Wemm/etc/termcap; in newer (USG/USL) versions, the database is a hierarchy of
710e3d5408SPeter Wemmfast-loading binary description blocks under /usr/lib/terminfo.  These binary
720e3d5408SPeter Wemmblocks are compiled from an improved editable text representation called
730e3d5408SPeter Wemm`terminfo' format (documented in man/terminfo.5).  The ncurses library can use
740e3d5408SPeter Wemmeither /etc/termcap or the compiled binary terminfo blocks, but prefers the
750e3d5408SPeter Wemmsecond form.
760e3d5408SPeter Wemm
770e3d5408SPeter WemmIn the `misc' directory, there is a text file terminfo.src, in editable
780e3d5408SPeter Wemmterminfo format, which can be used to generate the terminfo binaries (that's
790e3d5408SPeter Wemmwhat make install.data does).  If the package was built with the
800e3d5408SPeter Wemm--enable-termcap option enabled, and the ncurses library cannot find a terminfo
810e3d5408SPeter Wemmdescription for your terminal, it will fall back to the termcap file supplied
820e3d5408SPeter Wemmwith your system (which the ncurses package installation leaves strictly
830e3d5408SPeter Wemmalone).
840e3d5408SPeter Wemm
850e3d5408SPeter WemmThe utilities are as follows:
860e3d5408SPeter Wemm
870e3d5408SPeter Wemm	tic             -- terminfo source to binary compiler
880e3d5408SPeter Wemm	infocmp         -- terminfo binary to source decompiler/comparator
890e3d5408SPeter Wemm	clear           -- emits clear-screen for current terminal
900e3d5408SPeter Wemm	tput            -- shell-script access to terminal capabilities.
910e3d5408SPeter Wemm	toe		-- table of entries utility
920e3d5408SPeter Wemm	tset            -- terminal-initialization utility
930e3d5408SPeter Wemm
940e3d5408SPeter WemmThe first two (tic and infocmp) are used for manipulating terminfo
950e3d5408SPeter Wemmdescriptions; the next two (clear and tput) are for use in shell scripts.  The
960e3d5408SPeter Wemmlast (tset) is provided for 4.4BSD compatibility.  The source code for all of
970e3d5408SPeter Wemmthese lives in the `progs' directory.
980e3d5408SPeter Wemm
990e3d5408SPeter WemmDetailed documentation for all libraries and utilities can be found in
1000e3d5408SPeter Wemmthe `man' directory.  An HTML introduction to ncurses, panels, and
1010e3d5408SPeter Wemmmenus programming lives in the `misc' directory.  Manpages in HTML format
1020e3d5408SPeter Wemmare under `Ada95/html'.
1030e3d5408SPeter Wemm
1040e3d5408SPeter WemmThe `test' directory contains programs that can be used to verify or
1050e3d5408SPeter Wemmdemonstrate the functions of the ncurses libraries.  See test/README for
1060e3d5408SPeter Wemmdescriptions of these programs.  Notably, the `ncurses' utility is designed to
1070e3d5408SPeter Wemmhelp you systematically exercise the library functions.
1080e3d5408SPeter Wemm
1090e3d5408SPeter WemmAUTHORS:
1100e3d5408SPeter Wemm
1110e3d5408SPeter WemmPavel Curtis:
1120e3d5408SPeter Wemm	wrote the original ncurses
1130e3d5408SPeter Wemm
1140e3d5408SPeter WemmZeyd M. Ben-Halim:
1150e3d5408SPeter Wemm	port of original to Linux and many enhancements.
1160e3d5408SPeter Wemm
1170e3d5408SPeter WemmThomas Dickey (maintainer since 1.9.9e):
1180e3d5408SPeter Wemm	configuration scripts, porting, mods to adhere to XSI Curses in the
1190e3d5408SPeter Wemm	areas of background color, terminal modes.  Also memory leak testing,
1200e3d5408SPeter Wemm	the wresize, default colors and key definition extensions and numerous
1210e3d5408SPeter Wemm	bug fixes (more than half of those enumerated in NEWS beginning with
1220e3d5408SPeter Wemm	the internal release 1.8.9).
1230e3d5408SPeter Wemm
1240e3d5408SPeter WemmFlorian La Roche (official maintainer for FSF's ncurses 4.2)
1250e3d5408SPeter Wemm	Beginning with release 4.2, ncurses is distributed under an MIT-style
1260e3d5408SPeter Wemm	license.
1270e3d5408SPeter Wemm
1280e3d5408SPeter WemmEric S. Raymond:
1290e3d5408SPeter Wemm	the man pages, infocmp(1), tput(1), clear(1), captoinfo(1), tset(1),
1300e3d5408SPeter Wemm	toe(1), most of tic(1), trace levels, the HTML intro, wgetnstr() and
1310e3d5408SPeter Wemm	many other entry points, the cursor-movement optimization, the
1320e3d5408SPeter Wemm	scroll-pack optimizer for vertical motions, the mouse interface and
1330e3d5408SPeter Wemm	xterm mouse support, and the ncurses test program.
1340e3d5408SPeter Wemm
1350e3d5408SPeter WemmJuergen Pfeifer
1360e3d5408SPeter Wemm	The menu and form libraries, C++ bindings for ncurses, menus, forms and
1370e3d5408SPeter Wemm	panels, as well as the Ada95 binding.  Ongoing support for panel.
1380e3d5408SPeter Wemm
1390e3d5408SPeter WemmCONTRIBUTORS:
1400e3d5408SPeter Wemm
1410e3d5408SPeter WemmAlexander V. Lukyanov
1420e3d5408SPeter Wemm	for numerous fixes and improvements to the optimization logic.
1430e3d5408SPeter Wemm
1440e3d5408SPeter WemmDavid MacKenzie
1450e3d5408SPeter Wemm	for first-class bug-chasing and methodical testing.
1460e3d5408SPeter Wemm
1470e3d5408SPeter WemmRoss Ridge
1480e3d5408SPeter Wemm	for the code that hacks termcap parameterized strings into terminfo.
1490e3d5408SPeter Wemm
1500e3d5408SPeter WemmWarren Tucker and Gerhard Fuernkranz,
1510e3d5408SPeter Wemm	for writing and sending the panel library.
1520e3d5408SPeter Wemm
1530e3d5408SPeter WemmHellmuth Michaelis,
1540e3d5408SPeter Wemm	for many patches and testing the optimization code.
1550e3d5408SPeter Wemm
1560e3d5408SPeter WemmEric Newton, Ulrich Drepper, and Anatoly Ivasyuk:
1570e3d5408SPeter Wemm	the C++ code.
1580e3d5408SPeter Wemm
1590e3d5408SPeter WemmJonathan Ross,
1600e3d5408SPeter Wemm	for lessons in using sed.
1610e3d5408SPeter Wemm
1620e3d5408SPeter WemmKeith Bostic (maintainer of 4.4BSD curses)
1630e3d5408SPeter Wemm	for help, criticism, comments, bug-finding, and being willing to
1640e3d5408SPeter Wemm	deep-six BSD curses for this one when it grew up.
1650e3d5408SPeter Wemm
1660e3d5408SPeter WemmRichard Stallman,
1670e3d5408SPeter Wemm	for his commitment to making ncurses free software.
1680e3d5408SPeter Wemm
1690e3d5408SPeter WemmCountless other people have contributed by reporting bugs, sending fixes,
1700e3d5408SPeter Wemmsuggesting improvements, and generally whining about ncurses :-)
1710e3d5408SPeter Wemm
1720e3d5408SPeter WemmBUGS:
1730e3d5408SPeter Wemm	See the INSTALL file for bug and developer-list addresses.
1740e3d5408SPeter Wemm	The Hacker's Guide in the misc directory includes some guidelines
1750e3d5408SPeter Wemm	on how to report bugs in ways that will get them fixed most quickly.
176