source: chapter06/ncurses.xml@ 81fd230

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.1 6.1.1 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 81fd230 was 81fd230, checked in by Gerard Beekmans <gerard@…>, 19 years ago

Trunk is now identical to Testing

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4648 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 %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<para>Because the libraries have been moved, a few symlinks are pointing to
60non-existent files. Recreate those symlinks:</para>
61
62<screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
63ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
64</sect2>
65
66
67<sect2 id="contents-ncurses" role="content"><title>Contents of Ncurses</title>
68
69<segmentedlist>
70<segtitle>Installed programs</segtitle>
71<segtitle>Installed libraries</segtitle>
72<seglistitem><seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
73reset (link to tset), tack, tic, toe, tput, and tset</seg>
74<seg>libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so], libmenu.[a,so],
75libncurses++.a, libncurses.[a,so], and libpanel.[a,so]</seg></seglistitem>
76</segmentedlist>
77
78<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
79<?dbfo list-presentation="list"?>
80
81<varlistentry id="captoinfo">
82<term><command>captoinfo</command></term>
83<listitem>
84<para>Converts a termcap description into a terminfo description</para>
85<indexterm zone="ch-system-ncurses captoinfo"><primary sortas="b-captoinfo">captoinfo</primary></indexterm>
86</listitem>
87</varlistentry>
88
89<varlistentry id="clear">
90<term><command>clear</command></term>
91<listitem>
92<para>Clears the screen, if possible</para>
93<indexterm zone="ch-system-ncurses clear"><primary sortas="b-clear">clear</primary></indexterm>
94</listitem>
95</varlistentry>
96
97<varlistentry id="infocmp">
98<term><command>infocmp</command></term>
99<listitem>
100<para>Compares or prints out terminfo descriptions</para>
101<indexterm zone="ch-system-ncurses infocmp"><primary sortas="b-infocmp">infocmp</primary></indexterm>
102</listitem>
103</varlistentry>
104
105<varlistentry id="infotocap">
106<term><command>infotocap</command></term>
107<listitem>
108<para>Converts a terminfo description into a termcap description</para>
109<indexterm zone="ch-system-ncurses infotocap"><primary sortas="b-infotocap">infotocap</primary></indexterm>
110</listitem>
111</varlistentry>
112
113<varlistentry id="reset">
114<term><command>reset</command></term>
115<listitem>
116<para>Reinitializes a terminal to its default values</para>
117<indexterm zone="ch-system-ncurses reset"><primary sortas="b-reset">reset</primary></indexterm>
118</listitem>
119</varlistentry>
120
121<varlistentry id="tack">
122<term><command>tack</command></term>
123<listitem>
124<para>The terminfo action checker; it is mainly used to test the
125accuracy of an entry in the terminfo database</para>
126<indexterm zone="ch-system-ncurses tack"><primary sortas="b-tack">tack</primary></indexterm>
127</listitem>
128</varlistentry>
129
130<varlistentry id="tic">
131<term><command>tic</command></term>
132<listitem>
133<para>The terminfo entry-description compiler that translates a
134terminfo file from source format into the binary format needed for the
135ncurses library routines. A terminfo file contains information on the
136capabilities of a certain terminal</para>
137<indexterm zone="ch-system-ncurses tic"><primary sortas="b-tic">tic</primary></indexterm>
138</listitem>
139</varlistentry>
140
141<varlistentry id="toe">
142<term><command>toe</command></term>
143<listitem>
144<para>Lists all available terminal types, giving the primary name and
145description for each</para>
146<indexterm zone="ch-system-ncurses toe"><primary sortas="b-toe">toe</primary></indexterm>
147</listitem>
148</varlistentry>
149
150<varlistentry id="tput">
151<term><command>tput</command></term>
152<listitem>
153<para>Makes the values of terminal-dependent capabilities available to
154the shell; it can also be used to reset or initialize a terminal or
155report its long name</para>
156<indexterm zone="ch-system-ncurses tput"><primary sortas="b-tput">tput</primary></indexterm>
157</listitem>
158</varlistentry>
159
160<varlistentry id="tset">
161<term><command>tset</command></term>
162<listitem>
163<para>Can be used to initialize terminals</para>
164<indexterm zone="ch-system-ncurses tset"><primary sortas="b-tset">tset</primary></indexterm>
165</listitem>
166</varlistentry>
167
168<varlistentry id="libcurses">
169<term><filename class="libraryfile">libcurses</filename></term>
170<listitem>
171<para>A link to <filename>libncurses</filename></para>
172<indexterm zone="ch-system-ncurses libcurses"><primary sortas="c-libcurses">libcurses</primary></indexterm>
173</listitem>
174</varlistentry>
175
176<varlistentry id="libncurses">
177<term><filename class="libraryfile">libncurses</filename></term>
178<listitem>
179<para>Contains functions to display text in many complex ways on a
180terminal screen; a good example of the use of these functions is the
181menu displayed during the kernel's <command>make menuconfig</command></para>
182<indexterm zone="ch-system-ncurses libncurses"><primary sortas="c-libncurses">libncurses</primary></indexterm>
183</listitem>
184</varlistentry>
185
186<varlistentry id="libform">
187<term><filename class="libraryfile">libform</filename></term>
188<listitem>
189<para>Contains functions to implement forms</para>
190<indexterm zone="ch-system-ncurses libform"><primary sortas="c-libform">libform</primary></indexterm>
191</listitem>
192</varlistentry>
193
194<varlistentry id="libmenu">
195<term><filename class="libraryfile">libmenu</filename></term>
196<listitem>
197<para>Contains functions to implement menus</para>
198<indexterm zone="ch-system-ncurses libmenu"><primary sortas="c-libmenu">libmenu</primary></indexterm>
199</listitem>
200</varlistentry>
201
202<varlistentry id="libpanel">
203<term><filename class="libraryfile">libpanel</filename></term>
204<listitem>
205<para>Contains functions to implement panels</para>
206<indexterm zone="ch-system-ncurses libpanel"><primary sortas="c-libpanel">libpanel</primary></indexterm>
207</listitem>
208</varlistentry>
209</variablelist>
210
211</sect2>
212
213</sect1>
214
Note: See TracBrowser for help on using the repository browser.