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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e59e934 was 61ad0b7f, checked in by Chris Staub <chris@…>, 15 years ago

Added installed directory info for a number of packages

  • 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</userinput></screen>
38
39 <para os="c">Compile the package:</para>
40
41<screen os="d"><userinput>make</userinput></screen>
42
43 <para os="e">This package does not come with a test suite.</para>
44
45 <para os="f">Install the package:</para>
46
47<screen os="g"><userinput>make install</userinput></screen>
48
49 <para os="h">Move the Ncurses static libraries to the proper location:</para>
50
51<screen os="i"><userinput>mv -v /lib/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a /usr/lib</userinput></screen>
52
53 <para os="j">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
54
55<screen os="k"><userinput>rm -v /lib/lib{ncursesw,menuw,panelw,formw}.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 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 libncursesw.so /usr/lib/libcursesw.so
69ln -sfv libncursesw.a /usr/lib/libcursesw.a
70ln -sfv libncurses++w.a /usr/lib/libncurses++.a
71ln -sfv ncursesw5-config /usr/bin/ncurses5-config</userinput></screen>
72
73 <para os="n">Now we will create a symlink for /usr/share/terminfo in
74 <filename class="directory">/usr/lib</filename> for compatibility:</para>
75
76<screen os="o"><userinput>ln -sfv ../share/terminfo /usr/lib/terminfo</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.