source: chapter06/ncurses.xml@ 3ed279f

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

Tags changes in the contents sections to make a better print output.

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

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