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

clfs-3.0.0-systemd systemd
Last change on this file since 92574e0 was b76983a, checked in by Chris Staub <chris@…>, 10 years ago

Library name fix

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