source: BOOK/final-system/common/ncurses.xml @ f7e4340

sysvinit
Last change on this file since f7e4340 was f7e4340, checked in by Chris Staub <chris@…>, 8 years ago

Modified Ncurses instructions to move fewer libs to /lib

  • Property mode set to 100644
File size: 10.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  %general-entities;
6]>
7
8<sect1 id="ch-system-ncurses" role="wrap">
9  <?dbhtml filename="ncurses.html"?>
10
11  <title>Ncurses-&ncurses-version;</title>
12
13  <indexterm zone="ch-system-ncurses">
14    <primary sortas="a-Ncurses">Ncurses</primary>
15  </indexterm>
16
17  <sect2 role="package">
18    <title/>
19
20    <para>The Ncurses package contains libraries for terminal-independent
21    handling of character screens.</para>
22
23  </sect2>
24
25  <sect2 role="installation">
26    <title>Installation of Ncurses</title>
27
28<!--Ncurses Branch Update Area
29    <para os="p1">The following patch contains updates from the &ncurses-version; branch
30    by the Ncurses developers:</para>
31
32<screen os="p2"><userinput>patch -Np1 -i ../&ncurses-branch_update-patch;</userinput></screen>
33-->
34
35    <para os="a">Prepare Ncurses for compilation:</para>
36
37<screen os="b"><userinput>./configure \
38    --prefix=/usr \
39    --with-shared \
40    --without-debug \
41    --enable-widec \
42    --enable-pc-files</userinput></screen>
43
44    <variablelist os="b1">
45      <title>The meaning of the new configure option:</title>
46
47      <varlistentry>
48        <term><parameter>--with-manpage-format=normal</parameter></term>
49        <listitem>
50          <para>This tells Ncurses not to compress its installed manpages.</para>
51        </listitem>
52      </varlistentry>
53
54      <varlistentry>
55        <term><parameter>--enable-pc-files</parameter></term>
56        <listitem>
57          <para>This tells Ncurses to generate and install .pc files for
58          <command>pkg-config</command>.</para>
59        </listitem>
60      </varlistentry>
61    </variablelist>
62
63    <para os="c">Compile the package:</para>
64
65<screen os="d"><userinput>make</userinput></screen>
66
67    <para os="e">This package has a test suite, but it can only be run after
68    the package is installed. The tests are in the
69    <filename class="directory">test/</filename> directory. See the
70    <filename>README</filename> file in that directory for details.</para>
71
72    <para os="f">Install the package:</para>
73
74<screen os="g"><userinput>make install</userinput></screen>
75
76    <para os="h">Move the <filename class="libraryfile">libncursesw</filename>
77    shared library to <filename class="directory">/lib</filename>
78    and create a new symlink in <filename class="directory">/usr/lib</filename>:</para>
79
80<screen os="i"><userinput>mv -v /usr/lib/libncursesw.so.* /lib
81ln -svf ../../lib/$(readlink /usr/lib/libncursesw.so) /usr/lib/libncursesw.so</userinput></screen>
82
83    <para os="l">Many packages that use Ncurses will compile just fine against
84    the widechar libraries, but won't know to look for them. Create linker
85    scripts and symbolic links to allow older and non-widec compatible
86    programs to build properly:</para>
87
88<screen os="m"><userinput>for lib in ncurses form panel menu ; do
89        echo "INPUT(-l${lib}w)" &gt; /usr/lib/lib${lib}.so
90        ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
91done
92ln -sfv libncurses++w.a /usr/lib/libncurses++.a
93ln -sfv ncursesw6-config /usr/bin/ncurses6-config</userinput></screen>
94
95  </sect2>
96
97  <sect2 id="contents-ncurses" role="content">
98    <title>Contents of Ncurses</title>
99
100    <segmentedlist>
101      <segtitle>Installed programs</segtitle>
102      <segtitle>Installed libraries</segtitle>
103      <segtitle>Installed directories</segtitle>
104
105      <seglistitem>
106        <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
107        ncursesw6-config, reset (link to tset), tabs, tic, toe, tput, tset</seg>
108        <seg>libcursesw.so (link to libncursesw.so), libformw.[a,so],
109        libmenuw.[a,so], libncurses++w.a, libncursesw.[a,so],
110        libpanelw.[a,so]</seg>
111        <seg>/usr/share/tabset, /usr/share/terminfo</seg>
112      </seglistitem>
113    </segmentedlist>
114
115    <variablelist>
116      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
117      <?dbfo list-presentation="list"?>
118      <?dbhtml list-presentation="table"?>
119
120      <varlistentry id="captoinfo">
121        <term><command>captoinfo</command></term>
122        <listitem>
123          <para>Converts a termcap description into a terminfo description</para>
124          <indexterm zone="ch-system-ncurses captoinfo">
125            <primary sortas="b-captoinfo">captoinfo</primary>
126          </indexterm>
127        </listitem>
128      </varlistentry>
129
130      <varlistentry id="clear">
131        <term><command>clear</command></term>
132        <listitem>
133          <para>Clears the screen, if possible</para>
134          <indexterm zone="ch-system-ncurses clear">
135            <primary sortas="b-clear">clear</primary>
136          </indexterm>
137        </listitem>
138      </varlistentry>
139
140      <varlistentry id="infocmp">
141        <term><command>infocmp</command></term>
142        <listitem>
143          <para>Compares or prints out terminfo descriptions</para>
144          <indexterm zone="ch-system-ncurses infocmp">
145            <primary sortas="b-infocmp">infocmp</primary>
146          </indexterm>
147        </listitem>
148      </varlistentry>
149
150      <varlistentry id="infotocap">
151        <term><command>infotocap</command></term>
152        <listitem>
153          <para>Converts a terminfo description into a termcap description</para>
154          <indexterm zone="ch-system-ncurses infotocap">
155            <primary sortas="b-infotocap">infotocap</primary>
156          </indexterm>
157        </listitem>
158      </varlistentry>
159
160      <varlistentry id="ncursesw6-config">
161        <term><command>ncursesw6-config</command></term>
162        <listitem>
163          <para>Provides configuration information for ncurses</para>
164          <indexterm zone="ch-system-ncurses ncursesw6-config">
165            <primary sortas="b-ncursesw6-config">ncursesw6-config</primary>
166          </indexterm>
167        </listitem>
168      </varlistentry>
169
170      <varlistentry id="reset">
171        <term><command>reset</command></term>
172        <listitem>
173          <para>Reinitializes a terminal to its default values</para>
174          <indexterm zone="ch-system-ncurses reset">
175            <primary sortas="b-reset">reset</primary>
176          </indexterm>
177        </listitem>
178      </varlistentry>
179
180      <varlistentry id="tabs">
181        <term><command>tabs</command></term>
182        <listitem>
183          <para>Sets and clears tab stops on a terminal</para>
184          <indexterm zone="ch-system-ncurses tabs">
185            <primary sortas="b-tabs">tabs</primary>
186          </indexterm>
187        </listitem>
188      </varlistentry>
189
190      <varlistentry id="tic">
191        <term><command>tic</command></term>
192        <listitem>
193          <para>The terminfo entry-description compiler that translates a
194          terminfo file from source format into the binary format needed for the
195          ncurses library routines. A terminfo file contains information on the
196          capabilities of a certain terminal</para>
197          <indexterm zone="ch-system-ncurses tic">
198            <primary sortas="b-tic">tic</primary>
199          </indexterm>
200        </listitem>
201      </varlistentry>
202
203      <varlistentry id="toe">
204        <term><command>toe</command></term>
205        <listitem>
206          <para>Lists all available terminal types, giving the primary name and
207          description for each</para>
208          <indexterm zone="ch-system-ncurses toe">
209            <primary sortas="b-toe">toe</primary>
210          </indexterm>
211        </listitem>
212      </varlistentry>
213
214      <varlistentry id="tput">
215        <term><command>tput</command></term>
216        <listitem>
217          <para>Makes the values of terminal-dependent capabilities available to
218          the shell; it can also be used to reset or initialize a terminal or
219          report its long name</para>
220          <indexterm zone="ch-system-ncurses tput">
221            <primary sortas="b-tput">tput</primary>
222          </indexterm>
223        </listitem>
224      </varlistentry>
225
226      <varlistentry id="tset">
227        <term><command>tset</command></term>
228        <listitem>
229          <para>Can be used to initialize terminals</para>
230          <indexterm zone="ch-system-ncurses tset">
231            <primary sortas="b-tset">tset</primary>
232          </indexterm>
233        </listitem>
234      </varlistentry>
235
236      <varlistentry id="libcursesw">
237        <term><filename class="libraryfile">libcursesw</filename></term>
238        <listitem>
239          <para>A link to <filename>libncursesw</filename></para>
240          <indexterm zone="ch-system-ncurses libcursesw">
241            <primary sortas="c-libcursesw">libcursesw</primary>
242          </indexterm>
243        </listitem>
244      </varlistentry>
245
246      <varlistentry id="libncursesw">
247        <term><filename class="libraryfile">libncursesw</filename></term>
248        <listitem>
249          <para>Contains functions to display text in many complex ways on a
250          terminal screen; a good example of the use of these functions is the
251          menu displayed during the kernel's
252          <command>make menuconfig</command></para>
253          <indexterm zone="ch-system-ncurses libncursesw">
254            <primary sortas="c-libncursesw">libncursesw</primary>
255          </indexterm>
256        </listitem>
257      </varlistentry>
258
259      <varlistentry id="libformw">
260        <term><filename class="libraryfile">libformw</filename></term>
261        <listitem>
262          <para>Contains functions to implement forms</para>
263          <indexterm zone="ch-system-ncurses libformw">
264            <primary sortas="c-libformw">libformw</primary>
265          </indexterm>
266        </listitem>
267      </varlistentry>
268
269      <varlistentry id="libmenuw">
270        <term><filename class="libraryfile">libmenuw</filename></term>
271        <listitem>
272          <para>Contains functions to implement menus</para>
273          <indexterm zone="ch-system-ncurses libmenuw">
274            <primary sortas="c-libmenuw">libmenuw</primary>
275          </indexterm>
276        </listitem>
277      </varlistentry>
278
279      <varlistentry id="libpanelw">
280        <term><filename class="libraryfile">libpanelw</filename></term>
281        <listitem>
282          <para>Contains functions to implement panels</para>
283          <indexterm zone="ch-system-ncurses libpanelw">
284            <primary sortas="c-libpanelw">libpanelw</primary>
285          </indexterm>
286        </listitem>
287      </varlistentry>
288
289    </variablelist>
290
291  </sect2>
292
293</sect1>
Note: See TracBrowser for help on using the repository browser.