source: chapter06/ncurses.xml@ eb6d9eb

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since eb6d9eb was eb6d9eb, checked in by Archaic <archaic@…>, 19 years ago

Updated all chapter 6 build sizes (and chapter7 bootscripts).

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

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