[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Ncurses</title>
|
---|
| 27 |
|
---|
[6f21829] | 28 | <!--Ncurses Branch Update Area
|
---|
[b8928b0] | 29 | <para os="p1">The following patch contains updates from the &ncurses-version; branch
|
---|
| 30 | by the Ncurses developers:</para>
|
---|
[0f7e9ab] | 31 |
|
---|
| 32 | <screen os="p2"><userinput>patch -Np1 -i ../&ncurses-branch_update-patch;</userinput></screen>
|
---|
[6f21829] | 33 | -->
|
---|
[0f7e9ab] | 34 |
|
---|
[3f8be484] | 35 | <para os="a">Prepare Ncurses for compilation:</para>
|
---|
| 36 |
|
---|
[7cd7f99] | 37 | <screen os="b"><userinput>./configure \
|
---|
| 38 | --prefix=/usr \
|
---|
| 39 | --with-shared \
|
---|
| 40 | --without-debug \
|
---|
| 41 | --enable-widec \
|
---|
[6f21829] | 42 | --enable-pc-files</userinput></screen>
|
---|
[3f8be484] | 43 |
|
---|
[350c7e7] | 44 | <variablelist os="b1">
|
---|
| 45 | <title>The meaning of the new configure option:</title>
|
---|
| 46 |
|
---|
[3dd4698] | 47 | <varlistentry>
|
---|
| 48 | <term><parameter>--enable-pc-files</parameter></term>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>This tells Ncurses to generate and install .pc files for
|
---|
| 51 | <command>pkg-config</command>.</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | </varlistentry>
|
---|
[350c7e7] | 54 | </variablelist>
|
---|
| 55 |
|
---|
[e0e40d3] | 56 | <para os="c">Compile the package:</para>
|
---|
[3f8be484] | 57 |
|
---|
[e0e40d3] | 58 | <screen os="d"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 59 |
|
---|
[3abc2da] | 60 | <para os="e">This package has a test suite, but it can only be run after
|
---|
| 61 | the package is installed. The tests are in the
|
---|
[24b004c] | 62 | <filename class="directory">test/</filename> directory. See the
|
---|
[a80f43e] | 63 | <filename>README</filename> file in that directory for details.</para>
|
---|
[3f8be484] | 64 |
|
---|
[e0e40d3] | 65 | <para os="f">Install the package:</para>
|
---|
[3f8be484] | 66 |
|
---|
[e0e40d3] | 67 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
[3f8be484] | 68 |
|
---|
[6463a01] | 69 | <para os="h">Move the <filename class="libraryfile">libncursesw</filename>
|
---|
| 70 | shared library to <filename class="directory">/lib</filename>
|
---|
| 71 | and create a new symlink in <filename class="directory">/usr/lib</filename>:</para>
|
---|
[3f8be484] | 72 |
|
---|
[6463a01] | 73 | <screen os="i"><userinput>mv -v /usr/lib/libncursesw.so.* /lib
|
---|
| 74 | ln -svf ../../lib/$(readlink /usr/lib/libncursesw.so) /usr/lib/libncursesw.so</userinput></screen>
|
---|
[7cb0700] | 75 |
|
---|
[3abc2da] | 76 | <para os="l">Many packages that use Ncurses will compile just fine against
|
---|
| 77 | the widechar libraries, but won't know to look for them. Create linker
|
---|
| 78 | scripts and symbolic links to allow older and non-widec compatible
|
---|
| 79 | programs to build properly:</para>
|
---|
[50af1be] | 80 |
|
---|
[8c4638c] | 81 | <screen os="m"><userinput>for lib in ncurses form panel menu ; do
|
---|
[fcc84cc] | 82 | echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so
|
---|
[50af1be] | 83 | ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
|
---|
| 84 | done
|
---|
| 85 | ln -sfv libncurses++w.a /usr/lib/libncurses++.a
|
---|
[6f21829] | 86 | ln -sfv ncursesw6-config /usr/bin/ncurses6-config</userinput></screen>
|
---|
[50af1be] | 87 |
|
---|
[3f8be484] | 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 id="contents-ncurses" role="content">
|
---|
| 91 | <title>Contents of Ncurses</title>
|
---|
| 92 |
|
---|
| 93 | <segmentedlist>
|
---|
| 94 | <segtitle>Installed programs</segtitle>
|
---|
| 95 | <segtitle>Installed libraries</segtitle>
|
---|
[61ad0b7f] | 96 | <segtitle>Installed directories</segtitle>
|
---|
[3f8be484] | 97 |
|
---|
| 98 | <seglistitem>
|
---|
[7cb0700] | 99 | <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
|
---|
[6f21829] | 100 | ncursesw6-config, reset (link to tset), tabs, tic, toe, tput, tset</seg>
|
---|
[427015f] | 101 | <seg>libcursesw.so (link to libncursesw.so), libformw.[a,so],
|
---|
[f698055a] | 102 | libmenuw.[a,so], libncurses++w.a, libncursesw.[a,so],
|
---|
[7cb0700] | 103 | libpanelw.[a,so]</seg>
|
---|
[61ad0b7f] | 104 | <seg>/usr/share/tabset, /usr/share/terminfo</seg>
|
---|
[3f8be484] | 105 | </seglistitem>
|
---|
| 106 | </segmentedlist>
|
---|
| 107 |
|
---|
| 108 | <variablelist>
|
---|
| 109 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 110 | <?dbfo list-presentation="list"?>
|
---|
| 111 | <?dbhtml list-presentation="table"?>
|
---|
| 112 |
|
---|
[7cb0700] | 113 | <varlistentry id="captoinfo">
|
---|
| 114 | <term><command>captoinfo</command></term>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>Converts a termcap description into a terminfo description</para>
|
---|
| 117 | <indexterm zone="ch-system-ncurses captoinfo">
|
---|
| 118 | <primary sortas="b-captoinfo">captoinfo</primary>
|
---|
| 119 | </indexterm>
|
---|
| 120 | </listitem>
|
---|
| 121 | </varlistentry>
|
---|
| 122 |
|
---|
| 123 | <varlistentry id="clear">
|
---|
| 124 | <term><command>clear</command></term>
|
---|
| 125 | <listitem>
|
---|
| 126 | <para>Clears the screen, if possible</para>
|
---|
| 127 | <indexterm zone="ch-system-ncurses clear">
|
---|
| 128 | <primary sortas="b-clear">clear</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
| 132 |
|
---|
| 133 | <varlistentry id="infocmp">
|
---|
| 134 | <term><command>infocmp</command></term>
|
---|
| 135 | <listitem>
|
---|
| 136 | <para>Compares or prints out terminfo descriptions</para>
|
---|
| 137 | <indexterm zone="ch-system-ncurses infocmp">
|
---|
| 138 | <primary sortas="b-infocmp">infocmp</primary>
|
---|
| 139 | </indexterm>
|
---|
| 140 | </listitem>
|
---|
| 141 | </varlistentry>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="infotocap">
|
---|
| 144 | <term><command>infotocap</command></term>
|
---|
| 145 | <listitem>
|
---|
| 146 | <para>Converts a terminfo description into a termcap description</para>
|
---|
| 147 | <indexterm zone="ch-system-ncurses infotocap">
|
---|
| 148 | <primary sortas="b-infotocap">infotocap</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
[6f21829] | 153 | <varlistentry id="ncursesw6-config">
|
---|
| 154 | <term><command>ncursesw6-config</command></term>
|
---|
[1c62f2a] | 155 | <listitem>
|
---|
| 156 | <para>Provides configuration information for ncurses</para>
|
---|
[6f21829] | 157 | <indexterm zone="ch-system-ncurses ncursesw6-config">
|
---|
| 158 | <primary sortas="b-ncursesw6-config">ncursesw6-config</primary>
|
---|
[7cb0700] | 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="reset">
|
---|
| 164 | <term><command>reset</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>Reinitializes a terminal to its default values</para>
|
---|
| 167 | <indexterm zone="ch-system-ncurses reset">
|
---|
| 168 | <primary sortas="b-reset">reset</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
[427015f] | 173 | <varlistentry id="tabs">
|
---|
| 174 | <term><command>tabs</command></term>
|
---|
[7cb0700] | 175 | <listitem>
|
---|
[427015f] | 176 | <para>Sets and clears tab stops on a terminal</para>
|
---|
| 177 | <indexterm zone="ch-system-ncurses tabs">
|
---|
| 178 | <primary sortas="b-tabs">tabs</primary>
|
---|
[7cb0700] | 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="tic">
|
---|
| 184 | <term><command>tic</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>The terminfo entry-description compiler that translates a
|
---|
| 187 | terminfo file from source format into the binary format needed for the
|
---|
| 188 | ncurses library routines. A terminfo file contains information on the
|
---|
| 189 | capabilities of a certain terminal</para>
|
---|
| 190 | <indexterm zone="ch-system-ncurses tic">
|
---|
| 191 | <primary sortas="b-tic">tic</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="toe">
|
---|
| 197 | <term><command>toe</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>Lists all available terminal types, giving the primary name and
|
---|
| 200 | description for each</para>
|
---|
| 201 | <indexterm zone="ch-system-ncurses toe">
|
---|
| 202 | <primary sortas="b-toe">toe</primary>
|
---|
| 203 | </indexterm>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
| 207 | <varlistentry id="tput">
|
---|
| 208 | <term><command>tput</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>Makes the values of terminal-dependent capabilities available to
|
---|
| 211 | the shell; it can also be used to reset or initialize a terminal or
|
---|
| 212 | report its long name</para>
|
---|
| 213 | <indexterm zone="ch-system-ncurses tput">
|
---|
| 214 | <primary sortas="b-tput">tput</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
| 218 |
|
---|
| 219 | <varlistentry id="tset">
|
---|
| 220 | <term><command>tset</command></term>
|
---|
| 221 | <listitem>
|
---|
| 222 | <para>Can be used to initialize terminals</para>
|
---|
| 223 | <indexterm zone="ch-system-ncurses tset">
|
---|
| 224 | <primary sortas="b-tset">tset</primary>
|
---|
[1c62f2a] | 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
[7cb0700] | 229 | <varlistentry id="libcursesw">
|
---|
| 230 | <term><filename class="libraryfile">libcursesw</filename></term>
|
---|
[3f8be484] | 231 | <listitem>
|
---|
[7cb0700] | 232 | <para>A link to <filename>libncursesw</filename></para>
|
---|
| 233 | <indexterm zone="ch-system-ncurses libcursesw">
|
---|
| 234 | <primary sortas="c-libcursesw">libcursesw</primary>
|
---|
[3f8be484] | 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
[7cb0700] | 239 | <varlistentry id="libncursesw">
|
---|
| 240 | <term><filename class="libraryfile">libncursesw</filename></term>
|
---|
[3f8be484] | 241 | <listitem>
|
---|
| 242 | <para>Contains functions to display text in many complex ways on a
|
---|
| 243 | terminal screen; a good example of the use of these functions is the
|
---|
| 244 | menu displayed during the kernel's
|
---|
| 245 | <command>make menuconfig</command></para>
|
---|
[7cb0700] | 246 | <indexterm zone="ch-system-ncurses libncursesw">
|
---|
| 247 | <primary sortas="c-libncursesw">libncursesw</primary>
|
---|
[3f8be484] | 248 | </indexterm>
|
---|
| 249 | </listitem>
|
---|
| 250 | </varlistentry>
|
---|
| 251 |
|
---|
[7cb0700] | 252 | <varlistentry id="libformw">
|
---|
| 253 | <term><filename class="libraryfile">libformw</filename></term>
|
---|
[3f8be484] | 254 | <listitem>
|
---|
| 255 | <para>Contains functions to implement forms</para>
|
---|
[7cb0700] | 256 | <indexterm zone="ch-system-ncurses libformw">
|
---|
[b76983a] | 257 | <primary sortas="c-libformw">libformw</primary>
|
---|
[3f8be484] | 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
[7cb0700] | 262 | <varlistentry id="libmenuw">
|
---|
| 263 | <term><filename class="libraryfile">libmenuw</filename></term>
|
---|
[3f8be484] | 264 | <listitem>
|
---|
| 265 | <para>Contains functions to implement menus</para>
|
---|
[7cb0700] | 266 | <indexterm zone="ch-system-ncurses libmenuw">
|
---|
| 267 | <primary sortas="c-libmenuw">libmenuw</primary>
|
---|
[3f8be484] | 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
[7cb0700] | 272 | <varlistentry id="libpanelw">
|
---|
| 273 | <term><filename class="libraryfile">libpanelw</filename></term>
|
---|
[3f8be484] | 274 | <listitem>
|
---|
| 275 | <para>Contains functions to implement panels</para>
|
---|
[7cb0700] | 276 | <indexterm zone="ch-system-ncurses libpanelw">
|
---|
| 277 | <primary sortas="c-libpanelw">libpanelw</primary>
|
---|
[3f8be484] | 278 | </indexterm>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
| 281 |
|
---|
| 282 | </variablelist>
|
---|
| 283 |
|
---|
| 284 | </sect2>
|
---|
| 285 |
|
---|
| 286 | </sect1>
|
---|