[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-ncurses" role="wrap">
|
---|
| 9 | <?dbhtml filename="ncurses.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Ncurses-&ncurses-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-ncurses">
|
---|
| 14 | <primary sortas="a-Ncurses">Ncurses</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Ncurses package contains libraries for terminal-independent
|
---|
| 21 | handling of character screens.</para>
|
---|
| 22 |
|
---|
| 23 | <segmentedlist>
|
---|
| 24 | <segtitle>&dependencies;</segtitle>
|
---|
| 25 |
|
---|
| 26 | <seglistitem>
|
---|
| 27 | <seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 28 | Gawk, GCC, Glibc, Grep, Make, and Sed</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
| 31 |
|
---|
| 32 | </sect2>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="installation">
|
---|
| 35 | <title>Installation of Ncurses</title>
|
---|
| 36 |
|
---|
| 37 | <para os="a">Prepare Ncurses for compilation:</para>
|
---|
| 38 |
|
---|
[e0e40d3] | 39 | <screen os="b"><userinput>./configure --prefix=/usr --libdir=/lib \
|
---|
[3f8be484] | 40 | --with-shared --without-debug</userinput></screen>
|
---|
| 41 |
|
---|
[e0e40d3] | 42 | <para os="c">Compile the package:</para>
|
---|
[3f8be484] | 43 |
|
---|
[e0e40d3] | 44 | <screen os="d"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 45 |
|
---|
[e0e40d3] | 46 | <para os="e">This package does not come with a test suite.</para>
|
---|
[3f8be484] | 47 |
|
---|
[e0e40d3] | 48 | <para os="f">Install the package:</para>
|
---|
[3f8be484] | 49 |
|
---|
[e0e40d3] | 50 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
[3f8be484] | 51 |
|
---|
[380c903] | 52 | <para os="h">Move the Ncurses static libraries to the proper location:</para>
|
---|
[3f8be484] | 53 |
|
---|
[94e6142] | 54 | <screen os="i"><userinput>mv -v /lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a /usr/lib</userinput></screen>
|
---|
[3f8be484] | 55 |
|
---|
[e0e40d3] | 56 | <para os="j">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
|
---|
[3f8be484] | 57 |
|
---|
[94e6142] | 58 | <screen os="k"><userinput>rm -v /lib/lib{ncurses,menu,panel,form,curses}.so
|
---|
| 59 | ln -svf ../../lib/libncurses.so.5 /usr/lib/libcurses.so
|
---|
| 60 | ln -svf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
|
---|
| 61 | ln -svf ../../lib/libmenu.so.5 /usr/lib/libmenu.so
|
---|
| 62 | ln -svf ../../lib/libpanel.so.5 /usr/lib/libpanel.so
|
---|
| 63 | ln -svf ../../lib/libform.so.5 /usr/lib/libform.so</userinput></screen>
|
---|
[3f8be484] | 64 |
|
---|
[e0e40d3] | 65 | <para os="l">Give the Ncurses libraries execute permissions:</para>
|
---|
[3f8be484] | 66 |
|
---|
[2df5a38] | 67 | <screen os="m"><userinput>chmod -v 755 /lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;</userinput></screen>
|
---|
[3f8be484] | 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 id="contents-ncurses" role="content">
|
---|
| 72 | <title>Contents of Ncurses</title>
|
---|
| 73 |
|
---|
| 74 | <segmentedlist>
|
---|
| 75 | <segtitle>Installed programs</segtitle>
|
---|
| 76 | <segtitle>Installed libraries</segtitle>
|
---|
| 77 |
|
---|
| 78 | <seglistitem>
|
---|
| 79 | <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
|
---|
| 80 | reset (link to tset), tack, tic, toe, tput, and tset</seg>
|
---|
| 81 | <seg>libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so],
|
---|
| 82 | libmenu.[a,so], libncurses++.a, libncurses.[a,so], and
|
---|
| 83 | libpanel.[a,so]</seg>
|
---|
| 84 | </seglistitem>
|
---|
| 85 | </segmentedlist>
|
---|
| 86 |
|
---|
| 87 | <variablelist>
|
---|
| 88 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 89 | <?dbfo list-presentation="list"?>
|
---|
| 90 | <?dbhtml list-presentation="table"?>
|
---|
| 91 |
|
---|
| 92 | <varlistentry id="captoinfo">
|
---|
| 93 | <term><command>captoinfo</command></term>
|
---|
| 94 | <listitem>
|
---|
| 95 | <para>Converts a termcap description into a terminfo description</para>
|
---|
| 96 | <indexterm zone="ch-system-ncurses captoinfo">
|
---|
| 97 | <primary sortas="b-captoinfo">captoinfo</primary>
|
---|
| 98 | </indexterm>
|
---|
| 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
| 101 |
|
---|
| 102 | <varlistentry id="clear">
|
---|
| 103 | <term><command>clear</command></term>
|
---|
| 104 | <listitem>
|
---|
| 105 | <para>Clears the screen, if possible</para>
|
---|
| 106 | <indexterm zone="ch-system-ncurses clear">
|
---|
| 107 | <primary sortas="b-clear">clear</primary>
|
---|
| 108 | </indexterm>
|
---|
| 109 | </listitem>
|
---|
| 110 | </varlistentry>
|
---|
| 111 |
|
---|
| 112 | <varlistentry id="infocmp">
|
---|
| 113 | <term><command>infocmp</command></term>
|
---|
| 114 | <listitem>
|
---|
| 115 | <para>Compares or prints out terminfo descriptions</para>
|
---|
| 116 | <indexterm zone="ch-system-ncurses infocmp">
|
---|
| 117 | <primary sortas="b-infocmp">infocmp</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="infotocap">
|
---|
| 123 | <term><command>infotocap</command></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <para>Converts a terminfo description into a termcap description</para>
|
---|
| 126 | <indexterm zone="ch-system-ncurses infotocap">
|
---|
| 127 | <primary sortas="b-infotocap">infotocap</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="reset">
|
---|
| 133 | <term><command>reset</command></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>Reinitializes a terminal to its default values</para>
|
---|
| 136 | <indexterm zone="ch-system-ncurses reset">
|
---|
| 137 | <primary sortas="b-reset">reset</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 | </listitem>
|
---|
| 140 | </varlistentry>
|
---|
| 141 |
|
---|
| 142 | <varlistentry id="tack">
|
---|
| 143 | <term><command>tack</command></term>
|
---|
| 144 | <listitem>
|
---|
| 145 | <para>The terminfo action checker; it is mainly used to test the
|
---|
| 146 | accuracy of an entry in the terminfo database</para>
|
---|
| 147 | <indexterm zone="ch-system-ncurses tack">
|
---|
| 148 | <primary sortas="b-tack">tack</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
| 153 | <varlistentry id="tic">
|
---|
| 154 | <term><command>tic</command></term>
|
---|
| 155 | <listitem>
|
---|
| 156 | <para>The terminfo entry-description compiler that translates a
|
---|
| 157 | terminfo file from source format into the binary format needed for the
|
---|
| 158 | ncurses library routines. A terminfo file contains information on the
|
---|
| 159 | capabilities of a certain terminal</para>
|
---|
| 160 | <indexterm zone="ch-system-ncurses tic">
|
---|
| 161 | <primary sortas="b-tic">tic</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="toe">
|
---|
| 167 | <term><command>toe</command></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>Lists all available terminal types, giving the primary name and
|
---|
| 170 | description for each</para>
|
---|
| 171 | <indexterm zone="ch-system-ncurses toe">
|
---|
| 172 | <primary sortas="b-toe">toe</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
| 177 | <varlistentry id="tput">
|
---|
| 178 | <term><command>tput</command></term>
|
---|
| 179 | <listitem>
|
---|
| 180 | <para>Makes the values of terminal-dependent capabilities available to
|
---|
| 181 | the shell; it can also be used to reset or initialize a terminal or
|
---|
| 182 | report its long name</para>
|
---|
| 183 | <indexterm zone="ch-system-ncurses tput">
|
---|
| 184 | <primary sortas="b-tput">tput</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="tset">
|
---|
| 190 | <term><command>tset</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>Can be used to initialize terminals</para>
|
---|
| 193 | <indexterm zone="ch-system-ncurses tset">
|
---|
| 194 | <primary sortas="b-tset">tset</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="libcurses">
|
---|
| 200 | <term><filename class="libraryfile">libcurses</filename></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>A link to <filename>libncurses</filename></para>
|
---|
| 203 | <indexterm zone="ch-system-ncurses libcurses">
|
---|
| 204 | <primary sortas="c-libcurses">libcurses</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="libncurses">
|
---|
| 210 | <term><filename class="libraryfile">libncurses</filename></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>Contains functions to display text in many complex ways on a
|
---|
| 213 | terminal screen; a good example of the use of these functions is the
|
---|
| 214 | menu displayed during the kernel's
|
---|
| 215 | <command>make menuconfig</command></para>
|
---|
| 216 | <indexterm zone="ch-system-ncurses libncurses">
|
---|
| 217 | <primary sortas="c-libncurses">libncurses</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="libform">
|
---|
| 223 | <term><filename class="libraryfile">libform</filename></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>Contains functions to implement forms</para>
|
---|
| 226 | <indexterm zone="ch-system-ncurses libform">
|
---|
| 227 | <primary sortas="c-libform">libform</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
| 231 |
|
---|
| 232 | <varlistentry id="libmenu">
|
---|
| 233 | <term><filename class="libraryfile">libmenu</filename></term>
|
---|
| 234 | <listitem>
|
---|
| 235 | <para>Contains functions to implement menus</para>
|
---|
| 236 | <indexterm zone="ch-system-ncurses libmenu">
|
---|
| 237 | <primary sortas="c-libmenu">libmenu</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
| 241 |
|
---|
| 242 | <varlistentry id="libpanel">
|
---|
| 243 | <term><filename class="libraryfile">libpanel</filename></term>
|
---|
| 244 | <listitem>
|
---|
| 245 | <para>Contains functions to implement panels</para>
|
---|
| 246 | <indexterm zone="ch-system-ncurses libpanel">
|
---|
| 247 | <primary sortas="c-libpanel">libpanel</primary>
|
---|
| 248 | </indexterm>
|
---|
| 249 | </listitem>
|
---|
| 250 | </varlistentry>
|
---|
| 251 |
|
---|
| 252 | </variablelist>
|
---|
| 253 |
|
---|
| 254 | </sect2>
|
---|
| 255 |
|
---|
| 256 | </sect1>
|
---|