source: chapter08/ncurses.xml@ 768ae15

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 arm bdubbs/gcc13 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 768ae15 was 0d78c2c, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Package updates.
Update to iana-etc-20211112.
Update to elfutils-0.186.
Update to jinja2-3.0.3.
Update to bc-5.2.0.
Update to ncurses-6.3.
Update to libpipeline-1.5.4.
Update to meson-0.60.1.
Update to iproute2-5.15.0.
Update to linux-5.15.2.

One change was needed to systemd-249 due to changes in the linux
keernel version 5.14 and later.

A change to ncurses was needed to ensure the .pc files are placed in
the right location (/usr/lib/pkgconfig).

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