source: chapter06/ncurses.xml@ c5143c9

6.0
Last change on this file since c5143c9 was 0e9a9e2, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Fixed some tags and validation issues.

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

  • Property mode set to 100644
File size: 7.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/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>Ncurses installation depends on</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 --with-shared --without-debug</userinput></screen>
35
36<para>Compile the package:</para>
37
38<screen><userinput>make</userinput></screen>
39
40<para>This package does not come with a test suite.</para>
41
42<para>Install the package:</para>
43
44<screen><userinput>make install</userinput></screen>
45
46<para>Give the Ncurses libraries execute permissions:</para>
47
48<screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
49
50<para>Fix a library that should not be executable:</para>
51
52<screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
53
54<para>Move the libraries to the <filename class="directory">/lib</filename> directory,
55where they are expected to reside:</para>
56
57<screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
58
59<beginpage/>
60<para>Because the libraries have been moved, a few symlinks are pointing to
61non-existent files. Recreate those symlinks:</para>
62
63<screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
64ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
65</sect2>
66
67
68<sect2 id="contents-ncurses" role="content"><title>Contents of Ncurses</title>
69
70<segmentedlist>
71<segtitle>Installed programs</segtitle>
72<segtitle>Installed libraries</segtitle>
73<seglistitem><seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
74reset (link to tset), tack, tic, toe, tput, and tset</seg>
75<seg>libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so], libmenu.[a,so],
76libncurses++.a, libncurses.[a,so], and libpanel.[a,so]</seg></seglistitem>
77</segmentedlist>
78
79<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
80<?dbfo list-presentation="list"?>
81
82<varlistentry id="captoinfo">
83<term><command>captoinfo</command></term>
84<listitem>
85<para>converts a termcap description into a terminfo description.</para>
86<indexterm zone="ch-system-ncurses captoinfo"><primary sortas="b-captoinfo">captoinfo</primary></indexterm>
87</listitem>
88</varlistentry>
89
90<varlistentry id="clear">
91<term><command>clear</command></term>
92<listitem>
93<para>clears the screen, if possible.</para>
94<indexterm zone="ch-system-ncurses clear"><primary sortas="b-clear">clear</primary></indexterm>
95</listitem>
96</varlistentry>
97
98<varlistentry id="infocmp">
99<term><command>infocmp</command></term>
100<listitem>
101<para>compares or prints out terminfo descriptions.</para>
102<indexterm zone="ch-system-ncurses infocmp"><primary sortas="b-infocmp">infocmp</primary></indexterm>
103</listitem>
104</varlistentry>
105
106<varlistentry id="infotocap">
107<term><command>infotocap</command></term>
108<listitem>
109<para>converts a terminfo description into a termcap description.</para>
110<indexterm zone="ch-system-ncurses infotocap"><primary sortas="b-infotocap">infotocap</primary></indexterm>
111</listitem>
112</varlistentry>
113
114<varlistentry id="reset">
115<term><command>reset</command></term>
116<listitem>
117<para>reinitializes a terminal to its default values.</para>
118<indexterm zone="ch-system-ncurses reset"><primary sortas="b-reset">reset</primary></indexterm>
119</listitem>
120</varlistentry>
121
122<varlistentry id="tack">
123<term><command>tack</command></term>
124<listitem>
125<para>the terminfo action checker. It is mainly used to test the
126accuracy of an entry in the terminfo database.</para>
127<indexterm zone="ch-system-ncurses tack"><primary sortas="b-tack">tack</primary></indexterm>
128</listitem>
129</varlistentry>
130
131<varlistentry id="tic">
132<term><command>tic</command></term>
133<listitem>
134<para>the terminfo entry-description compiler. It translates a
135terminfo file from source format into the binary format needed for the
136ncurses library routines. A terminfo file contains information on the
137capabilities of a certain terminal.</para>
138<indexterm zone="ch-system-ncurses tic"><primary sortas="b-tic">tic</primary></indexterm>
139</listitem>
140</varlistentry>
141
142<varlistentry id="toe">
143<term><command>toe</command></term>
144<listitem>
145<para>lists all available terminal types, giving the primary name and
146description for each.</para>
147<indexterm zone="ch-system-ncurses toe"><primary sortas="b-toe">toe</primary></indexterm>
148</listitem>
149</varlistentry>
150
151<varlistentry id="tput">
152<term><command>tput</command></term>
153<listitem>
154<para>makes the values of terminal-dependent capabilities available to
155the shell. It can also be used to reset or initialize a terminal or
156report its long name.</para>
157<indexterm zone="ch-system-ncurses tput"><primary sortas="b-tput">tput</primary></indexterm>
158</listitem>
159</varlistentry>
160
161<varlistentry id="tset">
162<term><command>tset</command></term>
163<listitem>
164<para>can be used to initialize terminals.</para>
165<indexterm zone="ch-system-ncurses tset"><primary sortas="b-tset">tset</primary></indexterm>
166<beginpage/></listitem>
167</varlistentry>
168
169<varlistentry id="libncurses">
170<term><filename class="libraryfile">libncurses*</filename></term>
171<listitem>
172<para>contains functions to display text in many complex ways on a
173terminal screen. A good example of the use of these functions is the
174menu displayed during the kernel's <command>make menuconfig</command>.</para>
175<indexterm zone="ch-system-ncurses libncurses"><primary sortas="c-libncurses*">libncurses*</primary></indexterm>
176</listitem>
177</varlistentry>
178
179<varlistentry id="libform">
180<term><filename class="libraryfile">libform*</filename></term>
181<listitem>
182<para>contains functions to implement forms.</para>
183<indexterm zone="ch-system-ncurses libform"><primary sortas="c-libform*">libform*</primary></indexterm>
184</listitem>
185</varlistentry>
186
187<varlistentry id="libmenu">
188<term><filename class="libraryfile">libmenu*</filename></term>
189<listitem>
190<para>contains functions to implement menus.</para>
191<indexterm zone="ch-system-ncurses libmenu"><primary sortas="c-libmenu*">libmenu*</primary></indexterm>
192</listitem>
193</varlistentry>
194
195<varlistentry id="libpanel">
196<term><filename class="libraryfile">libpanel*</filename></term>
197<listitem>
198<para>contains functions to implement panels.</para>
199<indexterm zone="ch-system-ncurses libpanel"><primary sortas="c-libpanel*">libpanel*</primary></indexterm>
200</listitem>
201</varlistentry>
202</variablelist>
203
204</sect2>
205
206</sect1>
207
Note: See TracBrowser for help on using the repository browser.