source: clfs-sysroot/BOOK/final-system/common/ncurses.xml@ 030b4d2

Last change on this file since 030b4d2 was c439b8a, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated CLFS-Sysroot book sources to use DocBook-XML DTD 4.5.

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