[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] | 14 | handling 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,
|
---|
| 25 | Gawk, 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 |
|
---|
[0cb7f8b] | 40 | <para>This package does not come with a test suite.</para>
|
---|
| 41 |
|
---|
[73aedd1d] | 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 |
|
---|
[673b0d8] | 50 | <para>Now fix a library that shouldn't be executable:</para>
|
---|
[73aedd1d] | 51 |
|
---|
| 52 | <screen><userinput>chmod 644 /usr/lib/libncurses++.a</userinput></screen>
|
---|
| 53 |
|
---|
[ef57e3b] | 54 | <para>Move the libraries to the <filename class="directory">/lib</filename> directory,
|
---|
[ef13657] | 55 | where they are expected to reside:</para>
|
---|
[73aedd1d] | 56 |
|
---|
| 57 | <screen><userinput>mv /usr/lib/libncurses.so.5* /lib</userinput></screen>
|
---|
| 58 |
|
---|
[673b0d8] | 59 | <para>Because the libraries have been moved, a few symlinks are pointing to
|
---|
[db9d773c] | 60 | non-existent files. Recreate those symlinks:</para>
|
---|
[73aedd1d] | 61 |
|
---|
| 62 | <screen><userinput>ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
|
---|
| 63 | ln -sf libncurses.so /usr/lib/libcurses.so</userinput></screen>
|
---|
| 64 | </sect2>
|
---|
[6370fa6] | 65 |
|
---|
[5888299] | 66 |
|
---|
[c6cb3aa] | 67 | <sect2 id="contents-ncurses" role="content"><title>Contents of Ncurses</title>
|
---|
[673b0d8] | 68 |
|
---|
[c6cb3aa] | 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),
|
---|
| 73 | reset (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],
|
---|
| 75 | libncurses++.a, libncurses.[a,so], libpanel.[a,so]</seg></seglistitem>
|
---|
| 76 | </segmentedlist>
|
---|
[673b0d8] | 77 |
|
---|
[3ed279f] | 78 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
| 79 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 80 |
|
---|
[b8a819f] | 81 | <varlistentry id="captoinfo">
|
---|
| 82 | <term><command>captoinfo</command></term>
|
---|
[c6cb3aa] | 83 | <listitem>
|
---|
| 84 | <para>converts a termcap description into a terminfo description.</para>
|
---|
[3ed279f] | 85 | <indexterm zone="ch-system-ncurses captoinfo"><primary sortas="b-captoinfo">captoinfo</primary></indexterm>
|
---|
[c6cb3aa] | 86 | </listitem>
|
---|
| 87 | </varlistentry>
|
---|
[673b0d8] | 88 |
|
---|
[b8a819f] | 89 | <varlistentry id="clear">
|
---|
| 90 | <term><command>clear</command></term>
|
---|
[c6cb3aa] | 91 | <listitem>
|
---|
| 92 | <para>clears the screen, if this is possible.</para>
|
---|
[3ed279f] | 93 | <indexterm zone="ch-system-ncurses clear"><primary sortas="b-clear">clear</primary></indexterm>
|
---|
[c6cb3aa] | 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
[673b0d8] | 96 |
|
---|
[b8a819f] | 97 | <varlistentry id="infocmp">
|
---|
| 98 | <term><command>infocmp</command></term>
|
---|
[c6cb3aa] | 99 | <listitem>
|
---|
| 100 | <para>compares or prints out terminfo descriptions.</para>
|
---|
[3ed279f] | 101 | <indexterm zone="ch-system-ncurses infocmp"><primary sortas="b-infocmp">infocmp</primary></indexterm>
|
---|
[c6cb3aa] | 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
[673b0d8] | 104 |
|
---|
[b8a819f] | 105 | <varlistentry id="infotocap">
|
---|
| 106 | <term><command>infotocap</command></term>
|
---|
[c6cb3aa] | 107 | <listitem>
|
---|
| 108 | <para>converts a terminfo description into a termcap description.</para>
|
---|
[3ed279f] | 109 | <indexterm zone="ch-system-ncurses infotocap"><primary sortas="b-infotocap">infotocap</primary></indexterm>
|
---|
[c6cb3aa] | 110 | </listitem>
|
---|
| 111 | </varlistentry>
|
---|
[673b0d8] | 112 |
|
---|
[b8a819f] | 113 | <varlistentry id="reset">
|
---|
| 114 | <term><command>reset</command></term>
|
---|
[c6cb3aa] | 115 | <listitem>
|
---|
| 116 | <para>reinitializes a terminal to its default values.</para>
|
---|
[3ed279f] | 117 | <indexterm zone="ch-system-ncurses reset"><primary sortas="b-reset">reset</primary></indexterm>
|
---|
[c6cb3aa] | 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
[673b0d8] | 120 |
|
---|
[b8a819f] | 121 | <varlistentry id="tack">
|
---|
| 122 | <term><command>tack</command></term>
|
---|
[c6cb3aa] | 123 | <listitem>
|
---|
[ef13657] | 124 | <para>the terminfo action checker. It is mainly used to test the
|
---|
| 125 | accuracy of an entry in the terminfo database.</para>
|
---|
[3ed279f] | 126 | <indexterm zone="ch-system-ncurses tack"><primary sortas="b-tack">tack</primary></indexterm>
|
---|
[c6cb3aa] | 127 | </listitem>
|
---|
| 128 | </varlistentry>
|
---|
[6370fa6] | 129 |
|
---|
[b8a819f] | 130 | <varlistentry id="tic">
|
---|
| 131 | <term><command>tic</command></term>
|
---|
[c6cb3aa] | 132 | <listitem>
|
---|
[ef13657] | 133 | <para>the terminfo entry-description compiler. It translates a
|
---|
| 134 | terminfo file from source format into the binary format needed for the
|
---|
| 135 | ncurses library routines. A terminfo file contains information on the
|
---|
[673b0d8] | 136 | capabilities of a certain terminal.</para>
|
---|
[3ed279f] | 137 | <indexterm zone="ch-system-ncurses tic"><primary sortas="b-tic">tic</primary></indexterm>
|
---|
[c6cb3aa] | 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
[673b0d8] | 140 |
|
---|
[b8a819f] | 141 | <varlistentry id="toe">
|
---|
| 142 | <term><command>toe</command></term>
|
---|
[c6cb3aa] | 143 | <listitem>
|
---|
[ef13657] | 144 | <para>lists all available terminal types, giving the primary name and
|
---|
| 145 | description for each.</para>
|
---|
[3ed279f] | 146 | <indexterm zone="ch-system-ncurses toe"><primary sortas="b-toe">toe</primary></indexterm>
|
---|
[c6cb3aa] | 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
[673b0d8] | 149 |
|
---|
[b8a819f] | 150 | <varlistentry id="tput">
|
---|
| 151 | <term><command>tput</command></term>
|
---|
[c6cb3aa] | 152 | <listitem>
|
---|
[ef13657] | 153 | <para>makes the values of terminal-dependent capabilities available to
|
---|
| 154 | the shell. It can also be used to reset or initialize a terminal or
|
---|
| 155 | report its long name.</para>
|
---|
[3ed279f] | 156 | <indexterm zone="ch-system-ncurses tput"><primary sortas="b-tput">tput</primary></indexterm>
|
---|
[c6cb3aa] | 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
[673b0d8] | 159 |
|
---|
[b8a819f] | 160 | <varlistentry id="tset">
|
---|
| 161 | <term><command>tset</command></term>
|
---|
[c6cb3aa] | 162 | <listitem>
|
---|
| 163 | <para>can be used to initialize terminals.</para>
|
---|
[3ed279f] | 164 | <indexterm zone="ch-system-ncurses tset"><primary sortas="b-tset">tset</primary></indexterm>
|
---|
[c6cb3aa] | 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
[673b0d8] | 167 |
|
---|
[b8a819f] | 168 | <varlistentry id="libncurses">
|
---|
[ef57e3b] | 169 | <term><filename class="libraryfile">>libncurses*</filename></term>
|
---|
[c6cb3aa] | 170 | <listitem>
|
---|
[ef13657] | 171 | <para>contains functions to display text in many complicated ways on a
|
---|
| 172 | terminal screen. A good example of the use of these functions is the
|
---|
| 173 | menu displayed during the kernel's <command>make menuconfig</command>.</para>
|
---|
[3ed279f] | 174 | <indexterm zone="ch-system-ncurses libncurses"><primary sortas="c-libncurses*">libncurses*</primary></indexterm>
|
---|
[c6cb3aa] | 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
[673b0d8] | 177 |
|
---|
[b8a819f] | 178 | <varlistentry id="libform">
|
---|
[ef57e3b] | 179 | <term><filename class="libraryfile">libform*</filename></term>
|
---|
[c6cb3aa] | 180 | <listitem>
|
---|
| 181 | <para>contains functions to implement forms.</para>
|
---|
[3ed279f] | 182 | <indexterm zone="ch-system-ncurses libform"><primary sortas="c-libform*">libform*</primary></indexterm>
|
---|
[c6cb3aa] | 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
[673b0d8] | 185 |
|
---|
[b8a819f] | 186 | <varlistentry id="libmenu">
|
---|
[ef57e3b] | 187 | <term><filename class="libraryfile">libmenu*</filename></term>
|
---|
[c6cb3aa] | 188 | <listitem>
|
---|
| 189 | <para>contains functions to implement menus.</para>
|
---|
[3ed279f] | 190 | <indexterm zone="ch-system-ncurses libmenu"><primary sortas="c-libmenu*">libmenu*</primary></indexterm>
|
---|
[c6cb3aa] | 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
[673b0d8] | 193 |
|
---|
[b8a819f] | 194 | <varlistentry id="libpanel">
|
---|
[ef57e3b] | 195 | <term><filename class="libraryfile">libpanel*</filename></term>
|
---|
[c6cb3aa] | 196 | <listitem>
|
---|
| 197 | <para>contains functions to implement panels.</para>
|
---|
[3ed279f] | 198 | <indexterm zone="ch-system-ncurses libpanel"><primary sortas="c-libpanel*">libpanel*</primary></indexterm>
|
---|
[c6cb3aa] | 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 | </variablelist>
|
---|
[673b0d8] | 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | </sect1>
|
---|
[ef13657] | 206 |
|
---|