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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 04076fe was 7cb0700, checked in by Jim Gifford <clfs@…>, 16 years ago

Only build one version of Ncurses.

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