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

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

Text updates for ncurses

  • Property mode set to 100644
File size: 10.0 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 \
[72d93f3]36 --with-shared --without-debug --enable-widec \
[2d20c29]37 --with-manpage-format=normal \
38 --with-default-terminfo-dir=/usr/share/terminfo</userinput></screen>
[3f8be484]39
[e0e40d3]40 <para os="c">Compile the package:</para>
[3f8be484]41
[e0e40d3]42<screen os="d"><userinput>make</userinput></screen>
[3f8be484]43
[3abc2da]44 <para os="e">This package has a test suite, but it can only be run after
45 the package is installed. The tests are in the
[24b004c]46 <filename class="directory">test/</filename> directory. See the
[a80f43e]47 <filename>README</filename> file in that directory for details.</para>
[3f8be484]48
[e0e40d3]49 <para os="f">Install the package:</para>
[3f8be484]50
[e0e40d3]51<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]52
[380c903]53 <para os="h">Move the Ncurses static libraries to the proper location:</para>
[3f8be484]54
[7cb0700]55<screen os="i"><userinput>mv -v /lib/lib{panelw,menuw,formw,ncursesw,ncurses++w}.a /usr/lib</userinput></screen>
[3f8be484]56
[e0e40d3]57 <para os="j">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
[3f8be484]58
[df0177b]59<screen os="k"><userinput>ln -svf ../../lib/$(readlink /lib/libncursesw.so) /usr/lib/libncursesw.so
[5de15f0]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
[4f48ef0]63rm -v /lib/lib{ncursesw,menuw,panelw,formw}.so</userinput></screen>
[7cb0700]64
[3abc2da]65 <para os="l">Many packages that use Ncurses will compile just fine against
66 the widechar libraries, but won't know to look for them. Create linker
67 scripts and symbolic links to allow older and non-widec compatible
68 programs to build properly:</para>
[50af1be]69
70<screen os="m"><userinput>for lib in curses ncurses form panel menu ; do
[fcc84cc]71 echo "INPUT(-l${lib}w)" &gt; /usr/lib/lib${lib}.so
[50af1be]72 ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
73done
[fa83a6b]74ln -sfv libncursesw.so /usr/lib/libcursesw.so
[50af1be]75ln -sfv libncursesw.a /usr/lib/libcursesw.a
76ln -sfv libncurses++w.a /usr/lib/libncurses++.a
[895190c]77ln -sfv ncursesw5-config /usr/bin/ncurses5-config</userinput></screen>
[50af1be]78
[3f8be484]79 </sect2>
80
81 <sect2 id="contents-ncurses" role="content">
82 <title>Contents of Ncurses</title>
83
84 <segmentedlist>
85 <segtitle>Installed programs</segtitle>
86 <segtitle>Installed libraries</segtitle>
[61ad0b7f]87 <segtitle>Installed directories</segtitle>
[3f8be484]88
89 <seglistitem>
[7cb0700]90 <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
[f698055a]91 ncursesw5-config, reset (link to tset), tabs, tic, toe, tput, tset</seg>
[427015f]92 <seg>libcursesw.so (link to libncursesw.so), libformw.[a,so],
[f698055a]93 libmenuw.[a,so], libncurses++w.a, libncursesw.[a,so],
[7cb0700]94 libpanelw.[a,so]</seg>
[61ad0b7f]95 <seg>/usr/share/tabset, /usr/share/terminfo</seg>
[3f8be484]96 </seglistitem>
97 </segmentedlist>
98
99 <variablelist>
100 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
101 <?dbfo list-presentation="list"?>
102 <?dbhtml list-presentation="table"?>
103
[7cb0700]104 <varlistentry id="captoinfo">
105 <term><command>captoinfo</command></term>
106 <listitem>
107 <para>Converts a termcap description into a terminfo description</para>
108 <indexterm zone="ch-system-ncurses captoinfo">
109 <primary sortas="b-captoinfo">captoinfo</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="clear">
115 <term><command>clear</command></term>
116 <listitem>
117 <para>Clears the screen, if possible</para>
118 <indexterm zone="ch-system-ncurses clear">
119 <primary sortas="b-clear">clear</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="infocmp">
125 <term><command>infocmp</command></term>
126 <listitem>
127 <para>Compares or prints out terminfo descriptions</para>
128 <indexterm zone="ch-system-ncurses infocmp">
129 <primary sortas="b-infocmp">infocmp</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 <varlistentry id="infotocap">
135 <term><command>infotocap</command></term>
136 <listitem>
137 <para>Converts a terminfo description into a termcap description</para>
138 <indexterm zone="ch-system-ncurses infotocap">
139 <primary sortas="b-infotocap">infotocap</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="ncursesw5-config">
145 <term><command>ncursesw5-config</command></term>
[1c62f2a]146 <listitem>
147 <para>Provides configuration information for ncurses</para>
[7cb0700]148 <indexterm zone="ch-system-ncurses ncursesw5-config">
149 <primary sortas="b-ncursesw5-config">ncursesw5-config</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="reset">
155 <term><command>reset</command></term>
156 <listitem>
157 <para>Reinitializes a terminal to its default values</para>
158 <indexterm zone="ch-system-ncurses reset">
159 <primary sortas="b-reset">reset</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
[427015f]164 <varlistentry id="tabs">
165 <term><command>tabs</command></term>
[7cb0700]166 <listitem>
[427015f]167 <para>Sets and clears tab stops on a terminal</para>
168 <indexterm zone="ch-system-ncurses tabs">
169 <primary sortas="b-tabs">tabs</primary>
[7cb0700]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.