source: chapter06/ncurses.xml@ 90aae6b

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 6.5 6.6 6.7 6.8 7.0 7.1 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 90aae6b was 90aae6b, checked in by Matthew Burgess <matthew@…>, 15 years ago

Update various packages' list of installed programs and libraries. Many thanks to Chris Staub for the patch. Fixes #2371.

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