ncurses.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-ncurses" xreflabel="Ncurses">
  7. <title>Ncurses-&ncurses-version;</title>
  8. <?dbhtml filename="ncurses.html"?>
  9. <indexterm zone="ch-system-ncurses"><primary sortas="a-Ncurses">Ncurses</primary></indexterm>
  10. <para>The Ncurses package contains libraries for terminal-independent
  11. handling of character screens.</para>
  12. <screen>&buildtime; 0.6 SBU
  13. &diskspace; 27 MB</screen>
  14. <para>Ncurses installation depends on: Bash, Binutils, Coreutils, Diffutils,
  15. Gawk, GCC, Glibc, Grep, Make, Sed.</para>
  16. <sect2>
  17. <title>Installation of Ncurses</title>
  18. <para>Prepare Ncurses for compilation:</para>
  19. <screen><userinput>./configure --prefix=/usr --with-shared --without-debug</userinput></screen>
  20. <para>Compile the package:</para>
  21. <screen><userinput>make</userinput></screen>
  22. <para>Install the package:</para>
  23. <screen><userinput>make install</userinput></screen>
  24. <para>Give the Ncurses libraries execute permissions:</para>
  25. <screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
  26. <para>Now fix a library that shouldn't be executable:</para>
  27. <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
  28. <para>Move the libraries to the <filename>/lib</filename> directory,
  29. where they're expected to reside:</para>
  30. <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
  31. <para>Because the libraries have been moved, a few symlinks are pointing to
  32. non-existent files. Recreate those symlinks:</para>
  33. <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
  34. ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
  35. </sect2>
  36. <sect2 id="contents-ncurses"><title>Contents of Ncurses</title>
  37. <para><emphasis>Installed programs</emphasis>: captoinfo (link to tic), clear,
  38. infocmp, infotocap (link to tic), reset (link to tset), tack, tic, toe, tput
  39. and tset</para>
  40. <para><emphasis>Installed libraries</emphasis>: libcurses.[a,so] (link to
  41. libncurses.[a,so]), libform.[a,so], libmenu.[a,so], libncurses++.a,
  42. libncurses.[a,so], libpanel.[a,so]</para>
  43. </sect2>
  44. <sect2><title>Short descriptions</title>
  45. <indexterm zone="ch-system-ncurses captoinfo"><primary sortas="b-captoinfo">captoinfo</primary></indexterm>
  46. <para id="captoinfo"><command>captoinfo</command> converts a termcap description into a
  47. terminfo description.</para>
  48. <indexterm zone="ch-system-ncurses clear"><primary sortas="b-clear">clear</primary></indexterm>
  49. <para id="clear"><command>clear</command> clears the screen, if this is possible.</para>
  50. <indexterm zone="ch-system-ncurses infocmp"><primary sortas="b-infocmp">infocmp</primary></indexterm>
  51. <para id="infocmp"><command>infocmp</command> compares or prints out terminfo
  52. descriptions.</para>
  53. <indexterm zone="ch-system-ncurses infotocap"><primary sortas="b-infotocap">infotocap</primary></indexterm>
  54. <para id="infotocap"><command>infotocap</command> converts a terminfo description into
  55. a termcap description.</para>
  56. <indexterm zone="ch-system-ncurses reset"><primary sortas="b-reset">reset</primary></indexterm>
  57. <para id="reset"><command>reset</command> reinitializes a terminal to its default
  58. values.</para>
  59. <indexterm zone="ch-system-ncurses tack"><primary sortas="b-tack">tack</primary></indexterm>
  60. <para id="tack"><command>tack</command> is the terminfo action checker. It is mainly
  61. used to test the correctness of an entry in the terminfo database.</para>
  62. <indexterm zone="ch-system-ncurses tic"><primary sortas="b-tic">tic</primary></indexterm>
  63. <para id="tic"><command>tic</command> is the terminfo entry-description compiler.
  64. It translates a terminfo file from source format into the binary format needed
  65. for the ncurses library routines. A terminfo file contains information on the
  66. capabilities of a certain terminal.</para>
  67. <indexterm zone="ch-system-ncurses toe"><primary sortas="b-toe">toe</primary></indexterm>
  68. <para id="toe"><command>toe</command> lists all available terminal types, for each
  69. giving its primary name and its description.</para>
  70. <indexterm zone="ch-system-ncurses tput"><primary sortas="b-tput">tput</primary></indexterm>
  71. <para id="tput"><command>tput</command> makes the values of terminal-dependent
  72. capabilities available to the shell. It can also be used to reset or initialize
  73. a terminal, or report its long name.</para>
  74. <indexterm zone="ch-system-ncurses tset"><primary sortas="b-tset">tset</primary></indexterm>
  75. <para id="tset"><command>tset</command> can be used to initialize terminals.</para>
  76. <indexterm zone="ch-system-ncurses libncurses"><primary sortas="c-libncurses*">libncurses*</primary></indexterm>
  77. <para id="libncurses"><command>libncurses*</command> contains functions to display text in
  78. many complicated ways on a terminal screen. A good example of the use of these
  79. functions is the menu displayed during the kernel's make menuconfig.</para>
  80. <indexterm zone="ch-system-ncurses libform"><primary sortas="c-libform*">libform*</primary></indexterm>
  81. <para id="libform"><command>libform*</command> contains functions to implement forms.</para>
  82. <indexterm zone="ch-system-ncurses libmenu"><primary sortas="c-libmenu*">libmenu*</primary></indexterm>
  83. <para id="libmenu"><command>libmenu*</command> contains functions to implement menus.</para>
  84. <indexterm zone="ch-system-ncurses libpanel"><primary sortas="c-libpanel*">libpanel*</primary></indexterm>
  85. <para id="libpanel"><command>libpanel*</command> contains functions to implement panels.</para>
  86. </sect2>
  87. </sect1>