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

systemd
Last change on this file since e28d559b was 57fc8e7, checked in by Chris Staub <chris@…>, 9 years ago

Removed obsolete command explanation

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