source: chapter06/ncurses.xml@ 8d5ffbfd

Last change on this file since 8d5ffbfd was a0e1913, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4691 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 7.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-ncurses" role="wrap">
7<title>Ncurses-&ncurses-version;</title>
8<?dbhtml filename="ncurses.html"?>
9
10<indexterm zone="ch-system-ncurses"><primary sortas="a-Ncurses">Ncurses</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Ncurses package contains libraries for terminal-independent
14handling of character screens.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.6 SBU</seg><seg>27 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Ncurses</title>
31
32<para>Prepare Ncurses for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr --libdir=/lib \
35--with-shared --without-debug</userinput></screen>
36
37<para>Compile the package:</para>
38
39<screen><userinput>make</userinput></screen>
40
41<para>Install the package:</para>
42
43<screen><userinput>make install</userinput></screen>
44
45<para>Move the Ncurses static libraries to the proper locations:</para>
46
47<screen><userinput>mv /lib/lib{panel,menu,form,ncurses,ncurses++}.a /usr/lib</userinput></screen>
48
49<para>Create symlinks in <filename class="directory">/usr/lib:</filename></para>
50
51<screen><userinput>rm /lib/lib{ncurses,menu,panel,form}.so
52ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
53ln -sf ../../lib/libmenu.so.5 /usr/lib/libmenu.so
54ln -sf ../../lib/libpanel.so.5 /usr/lib/libpanel.so
55ln -sf ../../lib/libform.so.5 /usr/lib/libform.so</userinput></screen>
56
57<para>Give the Ncurses libraries execute permissions:</para>
58
59<screen><userinput>chmod 755 /lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;</userinput></screen>
60
61</sect2>
62
63<sect2 id="contents-ncurses" role="content"><title>Contents of Ncurses</title>
64
65<segmentedlist>
66<segtitle>Installed programs</segtitle>
67<segtitle>Installed libraries</segtitle>
68<seglistitem><seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
69reset (link to tset), tack, tic, toe, tput, and tset</seg>
70<seg>libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so], libmenu.[a,so],
71libncurses++.a, libncurses.[a,so], and libpanel.[a,so]</seg></seglistitem>
72</segmentedlist>
73
74<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
75<?dbfo list-presentation="list"?>
76<?dbhtml list-presentation="table"?>
77
78<varlistentry id="captoinfo">
79<term><command>captoinfo</command></term>
80<listitem>
81<para>Converts a termcap description into a terminfo description</para>
82<indexterm zone="ch-system-ncurses captoinfo"><primary sortas="b-captoinfo">captoinfo</primary></indexterm>
83</listitem>
84</varlistentry>
85
86<varlistentry id="clear">
87<term><command>clear</command></term>
88<listitem>
89<para>Clears the screen, if possible</para>
90<indexterm zone="ch-system-ncurses clear"><primary sortas="b-clear">clear</primary></indexterm>
91</listitem>
92</varlistentry>
93
94<varlistentry id="infocmp">
95<term><command>infocmp</command></term>
96<listitem>
97<para>Compares or prints out terminfo descriptions</para>
98<indexterm zone="ch-system-ncurses infocmp"><primary sortas="b-infocmp">infocmp</primary></indexterm>
99</listitem>
100</varlistentry>
101
102<varlistentry id="infotocap">
103<term><command>infotocap</command></term>
104<listitem>
105<para>Converts a terminfo description into a termcap description</para>
106<indexterm zone="ch-system-ncurses infotocap"><primary sortas="b-infotocap">infotocap</primary></indexterm>
107</listitem>
108</varlistentry>
109
110<varlistentry id="reset">
111<term><command>reset</command></term>
112<listitem>
113<para>Reinitializes a terminal to its default values</para>
114<indexterm zone="ch-system-ncurses reset"><primary sortas="b-reset">reset</primary></indexterm>
115</listitem>
116</varlistentry>
117
118<varlistentry id="tack">
119<term><command>tack</command></term>
120<listitem>
121<para>The terminfo action checker; it is mainly used to test the
122accuracy of an entry in the terminfo database</para>
123<indexterm zone="ch-system-ncurses tack"><primary sortas="b-tack">tack</primary></indexterm>
124</listitem>
125</varlistentry>
126
127<varlistentry id="tic">
128<term><command>tic</command></term>
129<listitem>
130<para>The terminfo entry-description compiler that translates a
131terminfo file from source format into the binary format needed for the
132ncurses library routines. A terminfo file contains information on the
133capabilities of a certain terminal</para>
134<indexterm zone="ch-system-ncurses tic"><primary sortas="b-tic">tic</primary></indexterm>
135</listitem>
136</varlistentry>
137
138<varlistentry id="toe">
139<term><command>toe</command></term>
140<listitem>
141<para>Lists all available terminal types, giving the primary name and
142description for each</para>
143<indexterm zone="ch-system-ncurses toe"><primary sortas="b-toe">toe</primary></indexterm>
144</listitem>
145</varlistentry>
146
147<varlistentry id="tput">
148<term><command>tput</command></term>
149<listitem>
150<para>Makes the values of terminal-dependent capabilities available to
151the shell; it can also be used to reset or initialize a terminal or
152report its long name</para>
153<indexterm zone="ch-system-ncurses tput"><primary sortas="b-tput">tput</primary></indexterm>
154</listitem>
155</varlistentry>
156
157<varlistentry id="tset">
158<term><command>tset</command></term>
159<listitem>
160<para>Can be used to initialize terminals</para>
161<indexterm zone="ch-system-ncurses tset"><primary sortas="b-tset">tset</primary></indexterm>
162</listitem>
163</varlistentry>
164
165<varlistentry id="libcurses">
166<term><filename class="libraryfile">libcurses</filename></term>
167<listitem>
168<para>A link to <filename>libncurses</filename></para>
169<indexterm zone="ch-system-ncurses libcurses"><primary sortas="c-libcurses">libcurses</primary></indexterm>
170</listitem>
171</varlistentry>
172
173<varlistentry id="libncurses">
174<term><filename class="libraryfile">libncurses</filename></term>
175<listitem>
176<para>Contains functions to display text in many complex ways on a
177terminal screen; a good example of the use of these functions is the
178menu displayed during the kernel's <command>make menuconfig</command></para>
179<indexterm zone="ch-system-ncurses libncurses"><primary sortas="c-libncurses">libncurses</primary></indexterm>
180</listitem>
181</varlistentry>
182
183<varlistentry id="libform">
184<term><filename class="libraryfile">libform</filename></term>
185<listitem>
186<para>Contains functions to implement forms</para>
187<indexterm zone="ch-system-ncurses libform"><primary sortas="c-libform">libform</primary></indexterm>
188</listitem>
189</varlistentry>
190
191<varlistentry id="libmenu">
192<term><filename class="libraryfile">libmenu</filename></term>
193<listitem>
194<para>Contains functions to implement menus</para>
195<indexterm zone="ch-system-ncurses libmenu"><primary sortas="c-libmenu">libmenu</primary></indexterm>
196</listitem>
197</varlistentry>
198
199<varlistentry id="libpanel">
200<term><filename class="libraryfile">libpanel</filename></term>
201<listitem>
202<para>Contains functions to implement panels</para>
203<indexterm zone="ch-system-ncurses libpanel"><primary sortas="c-libpanel">libpanel</primary></indexterm>
204</listitem>
205</varlistentry>
206</variablelist>
207
208</sect2>
209
210</sect1>
211
Note: See TracBrowser for help on using the repository browser.