source: chapter06/ncurses.xml@ 4428ad0

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 4428ad0 was 4428ad0, checked in by Matthew Burgess <matthew@…>, 12 years ago

Correct the location of various package's man pages. Fixes #3097.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9867 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 12.7 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 <sect1info condition="script">
12 <productname>ncurses</productname>
13 <productnumber>&ncurses-version;</productnumber>
14 <address>&ncurses-url;</address>
15 </sect1info>
16
17 <title>Ncurses-&ncurses-version;</title>
18
19 <indexterm zone="ch-system-ncurses">
20 <primary sortas="a-Ncurses">Ncurses</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Ncurses package contains libraries for terminal-independent
27 handling of character screens.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&ncurses-ch6-sbu;</seg>
35 <seg>&ncurses-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Ncurses</title>
43
44 <!-- FIXME: Uncomment if using a dated ncurses release instead of a numbered
45 one.
46
47 <para>Since the release of Ncurses-&ncurses-version;, some bugs have been fixed
48 and features added. The most important news are .......
49 To get these fixes and features, apply the rollup patch:</para>
50
51<screen><userinput>bzcat ../&ncurses-rollup-patch; | patch -Np1</userinput></screen>
52 -->
53
54 <para>Prepare Ncurses for compilation:</para>
55
56<screen><userinput remap="configure">./configure --prefix=/usr --mandir=/usr/share/man --with-shared \
57 --without-debug --enable-widec</userinput></screen>
58
59 <variablelist>
60 <title>The meaning of the configure option:</title>
61
62 <varlistentry>
63 <term><parameter>--enable-widec</parameter></term>
64 <listitem>
65 <para>This switch causes wide-character libraries (e.g., <filename
66 class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
67 to be built instead of normal ones (e.g., <filename
68 class="libraryfile">libncurses.so.&ncurses-version;</filename>).
69 These wide-character libraries are usable in both multibyte and
70 traditional 8-bit locales, while normal libraries work properly
71 only in 8-bit locales. Wide-character and normal libraries are
72 source-compatible, but not binary-compatible.</para>
73 </listitem>
74 </varlistentry>
75
76 <!--
77 <varlistentry>
78 <term><parameter>- -without-cxx-binding</parameter></term>
79 <listitem>
80 <para>This optional switch causes the
81 <filename class="libraryfile">libncurses++w.a</filename> library
82 not to be built. Nothing in LFS and BLFS uses this library.</para>
83 </listitem>
84 </varlistentry>
85 -->
86
87 </variablelist>
88
89 <para>Compile the package:</para>
90
91<screen><userinput remap="make">make</userinput></screen>
92
93 <para>This package has a test suite, but it can only be run after the
94 package has been installed. The tests reside in the
95 <filename class="directory">test/</filename> directory. See the
96 <filename>README</filename> file in that directory for further details.
97 </para>
98
99 <para>Install the package:</para>
100
101<screen><userinput remap="install">make install</userinput></screen>
102
103 <para>Move the shared libraries to the
104 <filename class="directory">/lib</filename> directory, where they are
105 expected to reside:</para>
106
107<screen><userinput remap="install">mv -v /usr/lib/libncursesw.so.5* /lib</userinput></screen>
108
109 <para>Because the libraries have been moved, one symlink points to
110 a non-existent file. Recreate it:</para>
111
112<screen><userinput remap="install">ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so</userinput></screen>
113
114 <para>Many applications still expect the linker to be able to find
115 non-wide-character Ncurses libraries. Trick such applications into linking with
116 wide-character libraries by means of symlinks and linker scripts:</para>
117
118<screen><userinput remap="install">for lib in ncurses form panel menu ; do \
119 rm -vf /usr/lib/lib${lib}.so ; \
120 echo "INPUT(-l${lib}w)" &gt;/usr/lib/lib${lib}.so ; \
121 ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
122done
123ln -sfv libncurses++w.a /usr/lib/libncurses++.a</userinput></screen>
124
125 <para>Finally, make sure that old applications that look for
126 <filename class="libraryfile">-lcurses</filename> at build time are still
127 buildable:</para>
128
129<screen><userinput remap="install">rm -vf /usr/lib/libcursesw.so
130echo "INPUT(-lncursesw)" &gt;/usr/lib/libcursesw.so
131ln -sfv libncurses.so /usr/lib/libcurses.so
132ln -sfv libncursesw.a /usr/lib/libcursesw.a
133ln -sfv libncurses.a /usr/lib/libcurses.a</userinput></screen>
134
135 <para>If desired, install the Ncurses documentation:</para>
136
137<screen><userinput remap="install">mkdir -v /usr/share/doc/ncurses-&ncurses-version;
138cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version;</userinput></screen>
139
140 <note>
141 <para>The instructions above don't create non-wide-character Ncurses
142 libraries since no package installed by compiling from sources would
143 link against them at runtime. If you must have such libraries because
144 of some binary-only application or to be compliant with LSB, build
145 the package again with the following commands:</para>
146
147<screen role="nodump"><userinput>make distclean
148./configure --prefix=/usr --with-shared --without-normal \
149 --without-debug --without-cxx-binding
150make sources libs
151cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
152 </note>
153
154 </sect2>
155
156 <sect2 id="contents-ncurses" role="content">
157 <title>Contents of Ncurses</title>
158
159 <segmentedlist>
160 <segtitle>Installed programs</segtitle>
161 <segtitle>Installed libraries</segtitle>
162 <segtitle>Installed directories</segtitle>
163
164 <seglistitem>
165 <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
166 ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, and tset</seg>
167 <seg>libcursesw.{a,so} (symlink and linker script to libncursesw.{a,so}),
168 libformw.{a,so}, libmenuw.{a,so}, libncurses++w.a, libncursesw.{a,so},
169 libpanelw.{a,so} and their non-wide-character counterparts without "w"
170 in the library names.</seg>
171 <seg>/usr/share/tabset, /usr/share/terminfo</seg>
172 </seglistitem>
173 </segmentedlist>
174
175 <variablelist>
176 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
177 <?dbfo list-presentation="list"?>
178 <?dbhtml list-presentation="table"?>
179
180 <varlistentry id="captoinfo">
181 <term><command>captoinfo</command></term>
182 <listitem>
183 <para>Converts a termcap description into a terminfo description</para>
184 <indexterm zone="ch-system-ncurses captoinfo">
185 <primary sortas="b-captoinfo">captoinfo</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="clear">
191 <term><command>clear</command></term>
192 <listitem>
193 <para>Clears the screen, if possible</para>
194 <indexterm zone="ch-system-ncurses clear">
195 <primary sortas="b-clear">clear</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="infocmp">
201 <term><command>infocmp</command></term>
202 <listitem>
203 <para>Compares or prints out terminfo descriptions</para>
204 <indexterm zone="ch-system-ncurses infocmp">
205 <primary sortas="b-infocmp">infocmp</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="infotocap">
211 <term><command>infotocap</command></term>
212 <listitem>
213 <para>Converts a terminfo description into a termcap description</para>
214 <indexterm zone="ch-system-ncurses infotocap">
215 <primary sortas="b-infotocap">infotocap</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="ncursesw5-config">
221 <term><command>ncursesw5-config</command></term>
222 <listitem>
223 <para>Provides configuration information for ncurses</para>
224 <indexterm zone="ch-system-ncurses ncursesw5-config">
225 <primary sortas="b-ncursesw5-config">ncursesw5-config</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="reset">
231 <term><command>reset</command></term>
232 <listitem>
233 <para>Reinitializes a terminal to its default values</para>
234 <indexterm zone="ch-system-ncurses reset">
235 <primary sortas="b-reset">reset</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry id="tabs">
241 <term><command>tabs</command></term>
242 <listitem>
243 <para>Clears and sets tab stops on a terminal</para>
244 <indexterm zone="ch-system-ncurses tabs">
245 <primary sortas="b-tabs">tabs</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="tic">
251 <term><command>tic</command></term>
252 <listitem>
253 <para>The terminfo entry-description compiler that translates a
254 terminfo file from source format into the binary format needed for the
255 ncurses library routines. A terminfo file contains information on the
256 capabilities of a certain terminal</para>
257 <indexterm zone="ch-system-ncurses tic">
258 <primary sortas="b-tic">tic</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="toe">
264 <term><command>toe</command></term>
265 <listitem>
266 <para>Lists all available terminal types, giving the primary name and
267 description for each</para>
268 <indexterm zone="ch-system-ncurses toe">
269 <primary sortas="b-toe">toe</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="tput">
275 <term><command>tput</command></term>
276 <listitem>
277 <para>Makes the values of terminal-dependent capabilities available to
278 the shell; it can also be used to reset or initialize a terminal or
279 report its long name</para>
280 <indexterm zone="ch-system-ncurses tput">
281 <primary sortas="b-tput">tput</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="tset">
287 <term><command>tset</command></term>
288 <listitem>
289 <para>Can be used to initialize terminals</para>
290 <indexterm zone="ch-system-ncurses tset">
291 <primary sortas="b-tset">tset</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="libcurses">
297 <term><filename class="libraryfile">libcurses</filename></term>
298 <listitem>
299 <para>A link to <filename>libncurses</filename></para>
300 <indexterm zone="ch-system-ncurses libcurses">
301 <primary sortas="c-libcurses">libcurses</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="libncurses">
307 <term><filename class="libraryfile">libncurses</filename></term>
308 <listitem>
309 <para>Contains functions to display text in many complex ways on a
310 terminal screen; a good example of the use of these functions is the
311 menu displayed during the kernel's <command>make
312 menuconfig</command></para>
313 <indexterm zone="ch-system-ncurses libncurses">
314 <primary sortas="c-libncurses">libncurses</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="libform">
320 <term><filename class="libraryfile">libform</filename></term>
321 <listitem>
322 <para>Contains functions to implement forms</para>
323 <indexterm zone="ch-system-ncurses libform">
324 <primary sortas="c-libform">libform</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="libmenu">
330 <term><filename class="libraryfile">libmenu</filename></term>
331 <listitem>
332 <para>Contains functions to implement menus</para>
333 <indexterm zone="ch-system-ncurses libmenu">
334 <primary sortas="c-libmenu">libmenu</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="libpanel">
340 <term><filename class="libraryfile">libpanel</filename></term>
341 <listitem>
342 <para>Contains functions to implement panels</para>
343 <indexterm zone="ch-system-ncurses libpanel">
344 <primary sortas="c-libpanel">libpanel</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 </variablelist>
350
351 </sect2>
352
353</sect1>
Note: See TracBrowser for help on using the repository browser.