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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a92cada was 895190c, checked in by Jim Gifford <clfs@…>, 16 years ago

Fixed to ncurses as stated in Ticket # 200

  • Property mode set to 100644
File size: 9.9 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
[50af1be]61 <para os="l">Now we will make our Ncurses compatible for older and non-widec compatible programs
62 can build properly:</para>
63
64<screen os="m"><userinput>for lib in curses ncurses form panel menu ; do
65 echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so
66 ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
67done
68ln -sfv libcurses.so /usr/lib/libcursesw.so
69ln -sfv libncurses.so /usr/lib/libcurses.so
70ln -sfv libncursesw.a /usr/lib/libcursesw.a
71ln -sfv libncurses.a /usr/lib/libcurses.a
72ln -sfv libncurses++w.a /usr/lib/libncurses++.a
[895190c]73ln -sfv ncursesw5-config /usr/bin/ncurses5-config</userinput></screen>
[50af1be]74
75 <para os="n">Now we will create a symlink for /usr/share/terminfo in
[7cb0700]76 <filename class="directory">/usr/lib</filename> for compatibility:</para>
77
[50af1be]78<screen os="o"><userinput>ln -sfv ../../usr/share/terminfo /usr/lib/terminfo</userinput></screen>
[3f8be484]79
80 </sect2>
81
82 <sect2 id="contents-ncurses" role="content">
83 <title>Contents of Ncurses</title>
84
85 <segmentedlist>
86 <segtitle>Installed programs</segtitle>
87 <segtitle>Installed libraries</segtitle>
88
89 <seglistitem>
[7cb0700]90 <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
91 ncursesw5-config, reset (link to tset), tack, tic, toe, tput, and tset</seg>
92 <seg>libcursesw.so (link to libncurses.so), libformw.[a,so],
93 libmenuw.[a,so], libncurses++w.a, libncursesw.[a,so], and
94 libpanelw.[a,so]</seg>
[3f8be484]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
[7cb0700]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>
[1c62f2a]145 <listitem>
146 <para>Provides configuration information for ncurses</para>
[7cb0700]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="tack">
164 <term><command>tack</command></term>
165 <listitem>
166 <para>The terminfo action checker; it is mainly used to test the
167 accuracy of an entry in the terminfo database</para>
168 <indexterm zone="ch-system-ncurses tack">
169 <primary sortas="b-tack">tack</primary>
170 </indexterm>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry id="tic">
175 <term><command>tic</command></term>
176 <listitem>
177 <para>The terminfo entry-description compiler that translates a
178 terminfo file from source format into the binary format needed for the
179 ncurses library routines. A terminfo file contains information on the
180 capabilities of a certain terminal</para>
181 <indexterm zone="ch-system-ncurses tic">
182 <primary sortas="b-tic">tic</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="toe">
188 <term><command>toe</command></term>
189 <listitem>
190 <para>Lists all available terminal types, giving the primary name and
191 description for each</para>
192 <indexterm zone="ch-system-ncurses toe">
193 <primary sortas="b-toe">toe</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="tput">
199 <term><command>tput</command></term>
200 <listitem>
201 <para>Makes the values of terminal-dependent capabilities available to
202 the shell; it can also be used to reset or initialize a terminal or
203 report its long name</para>
204 <indexterm zone="ch-system-ncurses tput">
205 <primary sortas="b-tput">tput</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="tset">
211 <term><command>tset</command></term>
212 <listitem>
213 <para>Can be used to initialize terminals</para>
214 <indexterm zone="ch-system-ncurses tset">
215 <primary sortas="b-tset">tset</primary>
[1c62f2a]216 </indexterm>
217 </listitem>
218 </varlistentry>
219
[7cb0700]220 <varlistentry id="libcursesw">
221 <term><filename class="libraryfile">libcursesw</filename></term>
[3f8be484]222 <listitem>
[7cb0700]223 <para>A link to <filename>libncursesw</filename></para>
224 <indexterm zone="ch-system-ncurses libcursesw">
225 <primary sortas="c-libcursesw">libcursesw</primary>
[3f8be484]226 </indexterm>
227 </listitem>
228 </varlistentry>
229
[7cb0700]230 <varlistentry id="libncursesw">
231 <term><filename class="libraryfile">libncursesw</filename></term>
[3f8be484]232 <listitem>
233 <para>Contains functions to display text in many complex ways on a
234 terminal screen; a good example of the use of these functions is the
235 menu displayed during the kernel's
236 <command>make menuconfig</command></para>
[7cb0700]237 <indexterm zone="ch-system-ncurses libncursesw">
238 <primary sortas="c-libncursesw">libncursesw</primary>
[3f8be484]239 </indexterm>
240 </listitem>
241 </varlistentry>
242
[7cb0700]243 <varlistentry id="libformw">
244 <term><filename class="libraryfile">libformw</filename></term>
[3f8be484]245 <listitem>
246 <para>Contains functions to implement forms</para>
[7cb0700]247 <indexterm zone="ch-system-ncurses libformw">
248 <primary sortas="c-libform">libformw</primary>
[3f8be484]249 </indexterm>
250 </listitem>
251 </varlistentry>
252
[7cb0700]253 <varlistentry id="libmenuw">
254 <term><filename class="libraryfile">libmenuw</filename></term>
[3f8be484]255 <listitem>
256 <para>Contains functions to implement menus</para>
[7cb0700]257 <indexterm zone="ch-system-ncurses libmenuw">
258 <primary sortas="c-libmenuw">libmenuw</primary>
[3f8be484]259 </indexterm>
260 </listitem>
261 </varlistentry>
262
[7cb0700]263 <varlistentry id="libpanelw">
264 <term><filename class="libraryfile">libpanelw</filename></term>
[3f8be484]265 <listitem>
266 <para>Contains functions to implement panels</para>
[7cb0700]267 <indexterm zone="ch-system-ncurses libpanelw">
268 <primary sortas="c-libpanelw">libpanelw</primary>
[3f8be484]269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 </variablelist>
274
275 </sect2>
276
277</sect1>
Note: See TracBrowser for help on using the repository browser.