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

systemd
Last change on this file since 9b304de was b76983a, checked in by Chris Staub <chris@…>, 10 years ago

Library name fix

  • Property mode set to 100644
File size: 10.6 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[b8928b0]28 <para os="p1">The following patch contains updates from the &ncurses-version; branch
29 by the Ncurses developers:</para>
[0f7e9ab]30
31<screen os="p2"><userinput>patch -Np1 -i ../&ncurses-branch_update-patch;</userinput></screen>
32
[3f8be484]33 <para os="a">Prepare Ncurses for compilation:</para>
34
[e0e40d3]35<screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib \
[72d93f3]36 --with-shared --without-debug --enable-widec \
[3dd4698]37 --with-manpage-format=normal --enable-pc-files \
[2d20c29]38 --with-default-terminfo-dir=/usr/share/terminfo</userinput></screen>
[3f8be484]39
[350c7e7]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>
[3dd4698]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>
[350c7e7]57 </variablelist>
58
[e0e40d3]59 <para os="c">Compile the package:</para>
[3f8be484]60
[e0e40d3]61<screen os="d"><userinput>make</userinput></screen>
[3f8be484]62
[3abc2da]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
[24b004c]65 <filename class="directory">test/</filename> directory. See the
[a80f43e]66 <filename>README</filename> file in that directory for details.</para>
[3f8be484]67
[e0e40d3]68 <para os="f">Install the package:</para>
[3f8be484]69
[e0e40d3]70<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]71
[380c903]72 <para os="h">Move the Ncurses static libraries to the proper location:</para>
[3f8be484]73
[7cb0700]74<screen os="i"><userinput>mv -v /lib/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a /usr/lib</userinput></screen>
[3f8be484]75
[e0e40d3]76 <para os="j">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
[3f8be484]77
[df0177b]78<screen os="k"><userinput>ln -svf ../../lib/$(readlink /lib/libncursesw.so) /usr/lib/libncursesw.so
[5de15f0]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
[4f48ef0]82rm -v /lib/lib{ncursesw,menuw,panelw,formw}.so</userinput></screen>
[7cb0700]83
[3abc2da]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>
[50af1be]88
89<screen os="m"><userinput>for lib in curses ncurses form panel menu ; do
[fcc84cc]90 echo "INPUT(-l${lib}w)" &gt; /usr/lib/lib${lib}.so
[50af1be]91 ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
92done
[fa83a6b]93ln -sfv libncursesw.so /usr/lib/libcursesw.so
[50af1be]94ln -sfv libncursesw.a /usr/lib/libcursesw.a
95ln -sfv libncurses++w.a /usr/lib/libncurses++.a
[895190c]96ln -sfv ncursesw5-config /usr/bin/ncurses5-config</userinput></screen>
[50af1be]97
[3f8be484]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>
[61ad0b7f]106 <segtitle>Installed directories</segtitle>
[3f8be484]107
108 <seglistitem>
[7cb0700]109 <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
[f698055a]110 ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, tset</seg>
[427015f]111 <seg>libcursesw.so (link to libncursesw.so), libformw.[a,so],
[f698055a]112 libmenuw.[a,so], libncurses++w.a, libncursesw.[a,so],
[7cb0700]113 libpanelw.[a,so]</seg>
[61ad0b7f]114 <seg>/usr/share/tabset, /usr/share/terminfo</seg>
[3f8be484]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
[7cb0700]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>
[1c62f2a]165 <listitem>
166 <para>Provides configuration information for ncurses</para>
[7cb0700]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
[427015f]183 <varlistentry id="tabs">
184 <term><command>tabs</command></term>
[7cb0700]185 <listitem>
[427015f]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>
[7cb0700]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>
[1c62f2a]235 </indexterm>
236 </listitem>
237 </varlistentry>
238
[7cb0700]239 <varlistentry id="libcursesw">
240 <term><filename class="libraryfile">libcursesw</filename></term>
[3f8be484]241 <listitem>
[7cb0700]242 <para>A link to <filename>libncursesw</filename></para>
243 <indexterm zone="ch-system-ncurses libcursesw">
244 <primary sortas="c-libcursesw">libcursesw</primary>
[3f8be484]245 </indexterm>
246 </listitem>
247 </varlistentry>
248
[7cb0700]249 <varlistentry id="libncursesw">
250 <term><filename class="libraryfile">libncursesw</filename></term>
[3f8be484]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>
[7cb0700]256 <indexterm zone="ch-system-ncurses libncursesw">
257 <primary sortas="c-libncursesw">libncursesw</primary>
[3f8be484]258 </indexterm>
259 </listitem>
260 </varlistentry>
261
[7cb0700]262 <varlistentry id="libformw">
263 <term><filename class="libraryfile">libformw</filename></term>
[3f8be484]264 <listitem>
265 <para>Contains functions to implement forms</para>
[7cb0700]266 <indexterm zone="ch-system-ncurses libformw">
[b76983a]267 <primary sortas="c-libformw">libformw</primary>
[3f8be484]268 </indexterm>
269 </listitem>
270 </varlistentry>
271
[7cb0700]272 <varlistentry id="libmenuw">
273 <term><filename class="libraryfile">libmenuw</filename></term>
[3f8be484]274 <listitem>
275 <para>Contains functions to implement menus</para>
[7cb0700]276 <indexterm zone="ch-system-ncurses libmenuw">
277 <primary sortas="c-libmenuw">libmenuw</primary>
[3f8be484]278 </indexterm>
279 </listitem>
280 </varlistentry>
281
[7cb0700]282 <varlistentry id="libpanelw">
283 <term><filename class="libraryfile">libpanelw</filename></term>
[3f8be484]284 <listitem>
285 <para>Contains functions to implement panels</para>
[7cb0700]286 <indexterm zone="ch-system-ncurses libpanelw">
287 <primary sortas="c-libpanelw">libpanelw</primary>
[3f8be484]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.