source: chapter06/ncurses.xml@ 1375d26

Last change on this file since 1375d26 was 1fe35e1, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter06/*.xml) RELAX NG validation fixes

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4356 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 section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-ncurses" xreflabel="Ncurses" role="wrap">
8<info><title>Ncurses-&ncurses-version;</title></info>
9<?dbhtml filename="ncurses.html"?>
10
11<indexterm zone="ch-system-ncurses"><primary sortas="a-Ncurses">Ncurses</primary></indexterm>
12
13<section role="package"><info><title/></info>
14<para>The Ncurses package contains libraries for terminal-independent
15handling of character screens.</para>
16
17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.6 SBU</seg><seg>27 MB</seg></seglistitem>
21</segmentedlist>
22
23<segmentedlist>
24<segtitle>Ncurses installation depends on</segtitle>
25<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
26Gawk, GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
27</segmentedlist>
28</section>
29
30<section role="installation">
31<info><title>Installation of Ncurses</title></info>
32
33<para>Prepare Ncurses for compilation:</para>
34
35<screen><userinput>./configure --prefix=/usr --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>Give the Ncurses libraries execute permissions:</para>
46
47<screen><userinput>chmod 755 /usr/lib/*.&ncurses-version;</userinput></screen>
48
49<para>Now fix a library that shouldn't be executable:</para>
50
51<screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
52
53<para>Move the libraries to the <filename class="directory">/lib</filename> directory,
54where they're expected to reside:</para>
55
56<screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
57
58<para>Because the libraries have been moved, a few symlinks are pointing to
59non-existent files. Recreate those symlinks:</para>
60
61<screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
62ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
63</section>
64
65
66<section xml:id="contents-ncurses" role="content"><title>Contents of Ncurses</title>
67
68<segmentedlist>
69<segtitle>Installed programs</segtitle>
70<segtitle>Installed libraries</segtitle>
71<seglistitem><seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
72reset (link to tset), tack, tic, toe, tput and tset</seg>
73<seg>libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so], libmenu.[a,so],
74libncurses++.a, libncurses.[a,so], libpanel.[a,so]</seg></seglistitem>
75</segmentedlist>
76
77<variablelist><title>Short descriptions</title>
78
79<varlistentry xml:id="captoinfo">
80<term><command>captoinfo</command></term>
81<listitem>
82<indexterm zone="ch-system-ncurses captoinfo"><primary sortas="b-captoinfo">captoinfo</primary></indexterm>
83<para>converts a termcap description into a terminfo description.</para>
84</listitem>
85</varlistentry>
86
87<varlistentry xml:id="clear">
88<term><command>clear</command></term>
89<listitem>
90<indexterm zone="ch-system-ncurses clear"><primary sortas="b-clear">clear</primary></indexterm>
91<para>clears the screen, if this is possible.</para>
92</listitem>
93</varlistentry>
94
95<varlistentry xml:id="infocmp">
96<term><command>infocmp</command></term>
97<listitem>
98<indexterm zone="ch-system-ncurses infocmp"><primary sortas="b-infocmp">infocmp</primary></indexterm>
99<para>compares or prints out terminfo descriptions.</para>
100</listitem>
101</varlistentry>
102
103<varlistentry xml:id="infotocap">
104<term><command>infotocap</command></term>
105<listitem>
106<indexterm zone="ch-system-ncurses infotocap"><primary sortas="b-infotocap">infotocap</primary></indexterm>
107<para>converts a terminfo description into a termcap description.</para>
108</listitem>
109</varlistentry>
110
111<varlistentry xml:id="reset">
112<term><command>reset</command></term>
113<listitem>
114<indexterm zone="ch-system-ncurses reset"><primary sortas="b-reset">reset</primary></indexterm>
115<para>reinitializes a terminal to its default values.</para>
116</listitem>
117</varlistentry>
118
119<varlistentry xml:id="tack">
120<term><command>tack</command></term>
121<listitem>
122<indexterm zone="ch-system-ncurses tack"><primary sortas="b-tack">tack</primary></indexterm>
123<para>is the terminfo action checker. It is mainly
124used to test the correctness of an entry in the terminfo database.</para>
125</listitem>
126</varlistentry>
127
128<varlistentry xml:id="tic">
129<term><command>tic</command></term>
130<listitem>
131<indexterm zone="ch-system-ncurses tic"><primary sortas="b-tic">tic</primary></indexterm>
132<para>is the terminfo entry-description compiler.
133It translates a terminfo file from source format into the binary format needed
134for the ncurses library routines. A terminfo file contains information on the
135capabilities of a certain terminal.</para>
136</listitem>
137</varlistentry>
138
139<varlistentry xml:id="toe">
140<term><command>toe</command></term>
141<listitem>
142<indexterm zone="ch-system-ncurses toe"><primary sortas="b-toe">toe</primary></indexterm>
143<para>lists all available terminal types, for each
144giving its primary name and its description.</para>
145</listitem>
146</varlistentry>
147
148<varlistentry xml:id="tput">
149<term><command>tput</command></term>
150<listitem>
151<indexterm zone="ch-system-ncurses tput"><primary sortas="b-tput">tput</primary></indexterm>
152<para>makes the values of terminal-dependent
153capabilities available to the shell. It can also be used to reset or initialize
154a terminal, or report its long name.</para>
155</listitem>
156</varlistentry>
157
158<varlistentry xml:id="tset">
159<term><command>tset</command></term>
160<listitem>
161<indexterm zone="ch-system-ncurses tset"><primary sortas="b-tset">tset</primary></indexterm>
162<para>can be used to initialize terminals.</para>
163</listitem>
164</varlistentry>
165
166<varlistentry xml:id="libncurses">
167<term><filename class="libraryfile">>libncurses*</filename></term>
168<listitem>
169<indexterm zone="ch-system-ncurses libncurses"><primary sortas="c-libncurses*">libncurses*</primary></indexterm>
170<para>contains functions to display text in
171many complicated ways on a terminal screen. A good example of the use of these
172functions is the menu displayed during the kernel's <command>make menuconfig</command>.</para>
173</listitem>
174</varlistentry>
175
176<varlistentry xml:id="libform">
177<term><filename class="libraryfile">libform*</filename></term>
178<listitem>
179<indexterm zone="ch-system-ncurses libform"><primary sortas="c-libform*">libform*</primary></indexterm>
180<para>contains functions to implement forms.</para>
181</listitem>
182</varlistentry>
183
184<varlistentry xml:id="libmenu">
185<term><filename class="libraryfile">libmenu*</filename></term>
186<listitem>
187<indexterm zone="ch-system-ncurses libmenu"><primary sortas="c-libmenu*">libmenu*</primary></indexterm>
188<para>contains functions to implement menus.</para>
189</listitem>
190</varlistentry>
191
192<varlistentry xml:id="libpanel">
193<term><filename class="libraryfile">libpanel*</filename></term>
194<listitem>
195<indexterm zone="ch-system-ncurses libpanel"><primary sortas="c-libpanel*">libpanel*</primary></indexterm>
196<para>contains functions to implement panels.</para>
197</listitem>
198</varlistentry>
199</variablelist>
200
201</section>
202
203</section>
Note: See TracBrowser for help on using the repository browser.