README 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. -------------------------------------------------------------------------------
  2. -- Copyright (c) 1998-2004,2006 Free Software Foundation, Inc. --
  3. -- --
  4. -- Permission is hereby granted, free of charge, to any person obtaining a --
  5. -- copy of this software and associated documentation files (the --
  6. -- "Software"), to deal in the Software without restriction, including --
  7. -- without limitation the rights to use, copy, modify, merge, publish, --
  8. -- distribute, distribute with modifications, sublicense, and/or sell copies --
  9. -- of the Software, and to permit persons to whom the Software is furnished --
  10. -- to do so, subject to the following conditions: --
  11. -- --
  12. -- The above copyright notice and this permission notice shall be included --
  13. -- in all copies or substantial portions of the Software. --
  14. -- --
  15. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS --
  16. -- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF --
  17. -- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
  18. -- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, --
  19. -- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR --
  20. -- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
  21. -- USE OR OTHER DEALINGS IN THE SOFTWARE. --
  22. -- --
  23. -- Except as contained in this notice, the name(s) of the above copyright --
  24. -- holders shall not be used in advertising or otherwise to promote the --
  25. -- sale, use or other dealings in this Software without prior written --
  26. -- authorization. --
  27. -------------------------------------------------------------------------------
  28. -- $Id: README,v 1.23 2006/04/22 22:19:37 tom Exp $
  29. -------------------------------------------------------------------------------
  30. README file for the ncurses package
  31. See the file ANNOUNCE for a summary of ncurses features and ports.
  32. See the file INSTALL for instructions on how to build and install ncurses.
  33. See the file NEWS for a release history and bug-fix notes.
  34. See the file TO-DO for things that still need doing, including known bugs.
  35. Browse the file misc/ncurses-intro.html for narrative descriptions of how
  36. to use ncurses and the panel, menu, and form libraries.
  37. Browse the file doc/html/hackguide.html for a tour of the package internals.
  38. ROADMAP AND PACKAGE OVERVIEW:
  39. You should be reading this file in a directory called: ncurses-d.d, where d.d
  40. is the current version number (see the dist.mk file in this directory for
  41. that). There should be a number of subdirectories, including `c++', `form',
  42. `man', `menu', `misc', `ncurses', `panel', `progs', `test', 'tack' and `Ada95'.
  43. (The 'tack' program may be distributed separately).
  44. A full build/install of this package typically installs several libraries, a
  45. handful of utilities, and a database hierarchy. Here is an inventory of the
  46. pieces:
  47. The libraries are:
  48. libncurses.a (normal)
  49. libncurses.so (shared)
  50. libncurses_g.a (debug and trace code enabled)
  51. libncurses_p.a (profiling enabled)
  52. libpanel.a (normal)
  53. libpanel.so (shared)
  54. libpanel_g.a (debug and trace code enabled)
  55. libmenu.a (normal)
  56. libmenu.so (shared)
  57. libmenu_g.a (debug enabled)
  58. libform.a (normal)
  59. libform.so (shared)
  60. libform_g.a (debug enabled)
  61. If you configure using the --enable-widec option, a "w" is appended to the
  62. library names (e.g., libncursesw.a), and the resulting libraries support
  63. wide-characters, e.g., via a UTF-8 locale. The corresponding header files
  64. are compatible with the non-wide-character configuration; wide-character
  65. features are provided by ifdef's in the header files. The wide-character
  66. library interfaces are not binary-compatible with the non-wide-character
  67. version.
  68. The ncurses libraries implement the curses API. The panel, menu and forms
  69. libraries implement clones of the SVr4 panel, menu and forms APIs. The source
  70. code for these lives in the `ncurses', `panel', `menu', and `form' directories
  71. respectively.
  72. In the `c++' directory, you'll find code that defines an interface to the
  73. curses, forms, menus and panels library packaged as C++ classes, and a demo program in C++
  74. to test it. These class definition modules are not installed by the 'make
  75. install.libs' rule as libncurses++.
  76. In the `Ada95' directory, you'll find code and documentation for an
  77. Ada95 binding of the curses API, to be used with the GNAT compiler.
  78. This binding is built by a normal top-level `make' if configure detects
  79. an usable version of GNAT (3.11 or above). It is not installed automatically.
  80. See the Ada95 directory for more build and installation instructions and
  81. for documentation of the binding.
  82. To do its job, the ncurses code needs your terminal type to be set in the
  83. environment variable TERM (normally set by your OS; under UNIX, getty(1)
  84. typically does this, but you can override it in your .profile); and, it needs a
  85. database of terminal descriptions in which to look up your terminal type's
  86. capabilities.
  87. In older (V7/BSD) versions of curses, the database was a flat text file,
  88. /etc/termcap; in newer (USG/USL) versions, the database is a hierarchy of
  89. fast-loading binary description blocks under /usr/lib/terminfo. These binary
  90. blocks are compiled from an improved editable text representation called
  91. `terminfo' format (documented in man/terminfo.5). The ncurses library can use
  92. either /etc/termcap or the compiled binary terminfo blocks, but prefers the
  93. second form.
  94. In the `misc' directory, there is a text file terminfo.src, in editable
  95. terminfo format, which can be used to generate the terminfo binaries (that's
  96. what make install.data does). If the package was built with the
  97. --enable-termcap option enabled, and the ncurses library cannot find a terminfo
  98. description for your terminal, it will fall back to the termcap file supplied
  99. with your system (which the ncurses package installation leaves strictly
  100. alone).
  101. The utilities are as follows:
  102. tic -- terminfo source to binary compiler
  103. infocmp -- terminfo binary to source decompiler/comparator
  104. clear -- emits clear-screen for current terminal
  105. tput -- shell-script access to terminal capabilities.
  106. toe -- table of entries utility
  107. tset -- terminal-initialization utility
  108. The first two (tic and infocmp) are used for manipulating terminfo
  109. descriptions; the next two (clear and tput) are for use in shell scripts. The
  110. last (tset) is provided for 4.4BSD compatibility. The source code for all of
  111. these lives in the `progs' directory.
  112. Detailed documentation for all libraries and utilities can be found in the
  113. `man' and `doc' directories. An HTML introduction to ncurses, panels, and
  114. menus programming lives in the `doc/html' directory. Manpages in HTML format
  115. are under `doc/html/man'.
  116. The `test' directory contains programs that can be used to verify or
  117. demonstrate the functions of the ncurses libraries. See test/README for
  118. descriptions of these programs. Notably, the `ncurses' utility is designed to
  119. help you systematically exercise the library functions.
  120. AUTHORS:
  121. Pavel Curtis:
  122. wrote the original ncurses
  123. Zeyd M. Ben-Halim:
  124. port of original to Linux and many enhancements.
  125. Thomas Dickey (maintainer for 1.9.9g through 4.1, resuming with FSF's 5.0):
  126. configuration scripts, porting, mods to adhere to XSI Curses in the
  127. areas of background color, terminal modes. Also memory leak testing,
  128. the wresize, default colors and key definition extensions and numerous
  129. bug fixes (more than half of those enumerated in NEWS beginning with
  130. the internal release 1.8.9).
  131. Florian La Roche (official maintainer for FSF's ncurses 4.2)
  132. Beginning with release 4.2, ncurses is distributed under an MIT-style
  133. license.
  134. Eric S. Raymond:
  135. the man pages, infocmp(1), tput(1), clear(1), captoinfo(1), tset(1),
  136. toe(1), most of tic(1), trace levels, the HTML intro, wgetnstr() and
  137. many other entry points, the cursor-movement optimization, the
  138. scroll-pack optimizer for vertical motions, the mouse interface and
  139. xterm mouse support, and the ncurses test program.
  140. Juergen Pfeifer
  141. The menu and form libraries, C++ bindings for ncurses, menus, forms and
  142. panels, as well as the Ada95 binding. Ongoing support for panel.
  143. CONTRIBUTORS:
  144. Alexander V. Lukyanov
  145. for numerous fixes and improvements to the optimization logic.
  146. David MacKenzie
  147. for first-class bug-chasing and methodical testing.
  148. Ross Ridge
  149. for the code that hacks termcap parameterized strings into terminfo.
  150. Warren Tucker and Gerhard Fuernkranz,
  151. for writing and sending the panel library.
  152. Hellmuth Michaelis,
  153. for many patches and testing the optimization code.
  154. Eric Newton, Ulrich Drepper, and Anatoly Ivasyuk:
  155. the C++ code.
  156. Jonathan Ross,
  157. for lessons in using sed.
  158. Keith Bostic (maintainer of 4.4BSD curses)
  159. for help, criticism, comments, bug-finding, and being willing to
  160. deep-six BSD curses for this one when it grew up.
  161. Richard Stallman,
  162. for his commitment to making ncurses free software.
  163. Countless other people have contributed by reporting bugs, sending fixes,
  164. suggesting improvements, and generally whining about ncurses :-)
  165. BUGS:
  166. See the INSTALL file for bug and developer-list addresses.
  167. The Hacker's Guide in the doc directory includes some guidelines
  168. on how to report bugs in ways that will get them fixed most quickly.