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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since bca3bb1 was 45fe31b, checked in by Chris Staub <chris@…>, 15 years ago

Removed some redundancy in terminfo symlink commands

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