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

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

Replaced redirection operators with &gt;

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