[fcc02767] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/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 | <sect1info condition="script">
|
---|
| 12 | <productname>ncurses</productname>
|
---|
| 13 | <productnumber>&ncurses-version;</productnumber>
|
---|
| 14 | <address>&ncurses-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Ncurses-&ncurses-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-ncurses">
|
---|
| 20 | <primary sortas="a-Ncurses">Ncurses</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Ncurses package contains libraries for terminal-independent
|
---|
| 27 | handling of character screens.</para>
|
---|
| 28 |
|
---|
| 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
| 32 |
|
---|
| 33 | <seglistitem>
|
---|
[fb386e0] | 34 | <seg>&ncurses-fin-sbu;</seg>
|
---|
| 35 | <seg>&ncurses-fin-du;</seg>
|
---|
[fcc02767] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Ncurses</title>
|
---|
| 43 |
|
---|
| 44 | <para>Prepare Ncurses for compilation:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 47 | --mandir=/usr/share/man \
|
---|
| 48 | --with-shared \
|
---|
| 49 | --without-debug \
|
---|
| 50 | --without-normal \
|
---|
| 51 | --enable-pc-files \
|
---|
| 52 | --enable-widec</userinput></screen>
|
---|
| 53 |
|
---|
| 54 | <variablelist>
|
---|
| 55 | <title>The meaning of the new configure options:</title>
|
---|
| 56 |
|
---|
| 57 | <varlistentry>
|
---|
| 58 | <term><parameter>--enable-widec</parameter></term>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>This switch causes wide-character libraries (e.g., <filename
|
---|
| 61 | class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
|
---|
| 62 | to be built instead of normal ones (e.g., <filename
|
---|
| 63 | class="libraryfile">libncurses.so.&ncurses-version;</filename>).
|
---|
| 64 | These wide-character libraries are usable in both multibyte and
|
---|
| 65 | traditional 8-bit locales, while normal libraries work properly
|
---|
| 66 | only in 8-bit locales. Wide-character and normal libraries are
|
---|
| 67 | source-compatible, but not binary-compatible.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 |
|
---|
| 71 | <varlistentry>
|
---|
| 72 | <term><parameter>--enable-pc-files</parameter></term>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>This switch generates and installs .pc files for pkg-config.
|
---|
| 75 | </para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </varlistentry>
|
---|
| 78 |
|
---|
| 79 | <varlistentry>
|
---|
| 80 | <term><parameter>--without-normal</parameter></term>
|
---|
| 81 | <listitem>
|
---|
| 82 | <para>This switch disables building and installing most static libraries.
|
---|
| 83 | </para>
|
---|
| 84 | </listitem>
|
---|
| 85 | </varlistentry>
|
---|
| 86 |
|
---|
| 87 | </variablelist>
|
---|
| 88 |
|
---|
| 89 | <para>Compile the package:</para>
|
---|
| 90 |
|
---|
| 91 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 92 |
|
---|
| 93 | <para>This package has a test suite, but it can only be run after the
|
---|
| 94 | package has been installed. The tests reside in the
|
---|
| 95 | <filename class="directory">test/</filename> directory. See the
|
---|
| 96 | <filename>README</filename> file in that directory for further details.
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <para>Install the package:</para>
|
---|
| 100 |
|
---|
| 101 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>Many applications still expect the linker to be able to find
|
---|
| 104 | non-wide-character Ncurses libraries. Trick such applications into linking with
|
---|
| 105 | wide-character libraries by means of symlinks and linker scripts:</para>
|
---|
| 106 |
|
---|
| 107 | <screen><userinput remap="install">for lib in ncurses form panel menu ; do
|
---|
| 108 | rm -vf /usr/lib/lib${lib}.so
|
---|
| 109 | echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so
|
---|
| 110 | ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc
|
---|
| 111 | done</userinput></screen>
|
---|
| 112 |
|
---|
| 113 | <para>Finally, make sure that old applications that look for
|
---|
| 114 | <filename class="libraryfile">-lcurses</filename> at build time are still
|
---|
| 115 | buildable:</para>
|
---|
| 116 |
|
---|
| 117 | <screen><userinput remap="install">rm -vf /usr/lib/libcursesw.so
|
---|
| 118 | echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so
|
---|
| 119 | ln -sfv libncurses.so /usr/lib/libcurses.so</userinput></screen>
|
---|
| 120 |
|
---|
[cd152f22] | 121 | <para>Remove a static library that is not handled by configure:</para>
|
---|
| 122 |
|
---|
| 123 | <screen><userinput remap="install">rm -fv /usr/lib/libncurses++w.a</userinput></screen>
|
---|
| 124 |
|
---|
[fcc02767] | 125 | <para>If desired, install the Ncurses documentation:</para>
|
---|
| 126 |
|
---|
| 127 | <screen><userinput remap="install">mkdir -v /usr/share/doc/ncurses-&ncurses-version;
|
---|
| 128 | cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version;</userinput></screen>
|
---|
| 129 |
|
---|
| 130 | <note>
|
---|
| 131 |
|
---|
| 132 | <para>The instructions above don't create non-wide-character Ncurses
|
---|
| 133 | libraries since no package installed by compiling from sources would link
|
---|
| 134 | against them at runtime. However, the only known binary-only
|
---|
| 135 | applications that link against non-wide-character Ncurses libraries
|
---|
| 136 | require version 5. If you must have such libraries because of some binary-only
|
---|
| 137 | application or to be compliant with LSB, build the package again with the
|
---|
| 138 | following commands:</para>
|
---|
| 139 |
|
---|
| 140 | <screen role="nodump"><userinput>make distclean
|
---|
| 141 | ./configure --prefix=/usr \
|
---|
| 142 | --with-shared \
|
---|
| 143 | --without-normal \
|
---|
| 144 | --without-debug \
|
---|
| 145 | --without-cxx-binding \
|
---|
| 146 | --with-abi-version=5
|
---|
| 147 | make sources libs
|
---|
| 148 | cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
|
---|
| 149 | </note>
|
---|
| 150 |
|
---|
| 151 | </sect2>
|
---|
| 152 |
|
---|
| 153 | <sect2 id="contents-ncurses" role="content">
|
---|
| 154 | <title>Contents of Ncurses</title>
|
---|
| 155 |
|
---|
| 156 | <segmentedlist>
|
---|
| 157 | <segtitle>Installed programs</segtitle>
|
---|
| 158 | <segtitle>Installed libraries</segtitle>
|
---|
| 159 | <segtitle>Installed directories</segtitle>
|
---|
| 160 |
|
---|
| 161 | <seglistitem>
|
---|
| 162 | <seg>
|
---|
| 163 | captoinfo (link to tic),
|
---|
| 164 | clear,
|
---|
| 165 | infocmp,
|
---|
| 166 | infotocap (link to tic),
|
---|
| 167 | ncursesw6-config,
|
---|
| 168 | reset (link to tset),
|
---|
| 169 | tabs,
|
---|
| 170 | tic,
|
---|
| 171 | toe,
|
---|
| 172 | tput, and
|
---|
| 173 | tset
|
---|
| 174 | </seg>
|
---|
| 175 | <seg>
|
---|
| 176 | libcursesw.so (symlink and linker script to libncursesw.so),
|
---|
| 177 | libformw.so,
|
---|
| 178 | libmenuw.so,
|
---|
| 179 | libncursesw.so,
|
---|
| 180 | libpanelw.so, and their non-wide-character counterparts without "w"
|
---|
| 181 | in the library names.</seg>
|
---|
| 182 | <seg>
|
---|
| 183 | /usr/share/tabset,
|
---|
| 184 | /usr/share/terminfo, and
|
---|
| 185 | /usr/share/doc/ncurses-&ncurses-version;
|
---|
| 186 | </seg>
|
---|
| 187 | </seglistitem>
|
---|
| 188 | </segmentedlist>
|
---|
| 189 |
|
---|
| 190 | <variablelist>
|
---|
| 191 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 192 | <?dbfo list-presentation="list"?>
|
---|
| 193 | <?dbhtml list-presentation="table"?>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="captoinfo">
|
---|
| 196 | <term><command>captoinfo</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>Converts a termcap description into a terminfo description</para>
|
---|
| 199 | <indexterm zone="ch-system-ncurses captoinfo">
|
---|
| 200 | <primary sortas="b-captoinfo">captoinfo</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="clear">
|
---|
| 206 | <term><command>clear</command></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>Clears the screen, if possible</para>
|
---|
| 209 | <indexterm zone="ch-system-ncurses clear">
|
---|
| 210 | <primary sortas="b-clear">clear</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="infocmp">
|
---|
| 216 | <term><command>infocmp</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>Compares or prints out terminfo descriptions</para>
|
---|
| 219 | <indexterm zone="ch-system-ncurses infocmp">
|
---|
| 220 | <primary sortas="b-infocmp">infocmp</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="infotocap">
|
---|
| 226 | <term><command>infotocap</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>Converts a terminfo description into a termcap description</para>
|
---|
| 229 | <indexterm zone="ch-system-ncurses infotocap">
|
---|
| 230 | <primary sortas="b-infotocap">infotocap</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
| 235 | <varlistentry id="ncursesw6-config">
|
---|
| 236 | <term><command>ncursesw6-config</command></term>
|
---|
| 237 | <listitem>
|
---|
| 238 | <para>Provides configuration information for ncurses</para>
|
---|
| 239 | <indexterm zone="ch-system-ncurses ncursesw6-config">
|
---|
| 240 | <primary sortas="b-ncursesw6-config">ncursesw6-config</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | <varlistentry id="reset">
|
---|
| 246 | <term><command>reset</command></term>
|
---|
| 247 | <listitem>
|
---|
| 248 | <para>Reinitializes a terminal to its default values</para>
|
---|
| 249 | <indexterm zone="ch-system-ncurses reset">
|
---|
| 250 | <primary sortas="b-reset">reset</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="tabs">
|
---|
| 256 | <term><command>tabs</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>Clears and sets tab stops on a terminal</para>
|
---|
| 259 | <indexterm zone="ch-system-ncurses tabs">
|
---|
| 260 | <primary sortas="b-tabs">tabs</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
| 264 |
|
---|
| 265 | <varlistentry id="tic">
|
---|
| 266 | <term><command>tic</command></term>
|
---|
| 267 | <listitem>
|
---|
| 268 | <para>The terminfo entry-description compiler that translates a
|
---|
| 269 | terminfo file from source format into the binary format needed for the
|
---|
| 270 | ncurses library routines [A terminfo file contains information on the
|
---|
| 271 | capabilities of a certain terminal.]</para>
|
---|
| 272 | <indexterm zone="ch-system-ncurses tic">
|
---|
| 273 | <primary sortas="b-tic">tic</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 |
|
---|
| 278 | <varlistentry id="toe">
|
---|
| 279 | <term><command>toe</command></term>
|
---|
| 280 | <listitem>
|
---|
| 281 | <para>Lists all available terminal types, giving the primary name and
|
---|
| 282 | description for each</para>
|
---|
| 283 | <indexterm zone="ch-system-ncurses toe">
|
---|
| 284 | <primary sortas="b-toe">toe</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | <varlistentry id="tput">
|
---|
| 290 | <term><command>tput</command></term>
|
---|
| 291 | <listitem>
|
---|
| 292 | <para>Makes the values of terminal-dependent capabilities available to
|
---|
| 293 | the shell; it can also be used to reset or initialize a terminal or
|
---|
| 294 | report its long name</para>
|
---|
| 295 | <indexterm zone="ch-system-ncurses tput">
|
---|
| 296 | <primary sortas="b-tput">tput</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
| 300 |
|
---|
| 301 | <varlistentry id="tset">
|
---|
| 302 | <term><command>tset</command></term>
|
---|
| 303 | <listitem>
|
---|
| 304 | <para>Can be used to initialize terminals</para>
|
---|
| 305 | <indexterm zone="ch-system-ncurses tset">
|
---|
| 306 | <primary sortas="b-tset">tset</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 |
|
---|
| 311 | <varlistentry id="libcursesw">
|
---|
| 312 | <term><filename class="libraryfile">libcursesw</filename></term>
|
---|
| 313 | <listitem>
|
---|
| 314 | <para>A link to <filename>libncursesw</filename></para>
|
---|
| 315 | <indexterm zone="ch-system-ncurses libcursesw">
|
---|
| 316 | <primary sortas="c-libcursesw">libcursesw</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
| 320 |
|
---|
| 321 | <varlistentry id="libncursesw">
|
---|
| 322 | <term><filename class="libraryfile">libncursesw</filename></term>
|
---|
| 323 | <listitem>
|
---|
| 324 | <para>Contains functions to display text in many complex ways on a
|
---|
| 325 | terminal screen; a good example of the use of these functions is the
|
---|
| 326 | menu displayed during the kernel's <command>make
|
---|
| 327 | menuconfig</command></para>
|
---|
| 328 | <indexterm zone="ch-system-ncurses libncursesw">
|
---|
| 329 | <primary sortas="c-libncursesw">libncursesw</primary>
|
---|
| 330 | </indexterm>
|
---|
| 331 | </listitem>
|
---|
| 332 | </varlistentry>
|
---|
| 333 |
|
---|
| 334 | <varlistentry id="libformw">
|
---|
| 335 | <term><filename class="libraryfile">libformw</filename></term>
|
---|
| 336 | <listitem>
|
---|
| 337 | <para>Contains functions to implement forms</para>
|
---|
| 338 | <indexterm zone="ch-system-ncurses libformw">
|
---|
| 339 | <primary sortas="c-libformw">libformw</primary>
|
---|
| 340 | </indexterm>
|
---|
| 341 | </listitem>
|
---|
| 342 | </varlistentry>
|
---|
| 343 |
|
---|
| 344 | <varlistentry id="libmenuw">
|
---|
| 345 | <term><filename class="libraryfile">libmenuw</filename></term>
|
---|
| 346 | <listitem>
|
---|
| 347 | <para>Contains functions to implement menus</para>
|
---|
| 348 | <indexterm zone="ch-system-ncurses libmenuw">
|
---|
| 349 | <primary sortas="c-libmenuw">libmenuw</primary>
|
---|
| 350 | </indexterm>
|
---|
| 351 | </listitem>
|
---|
| 352 | </varlistentry>
|
---|
| 353 |
|
---|
| 354 | <varlistentry id="libpanelw">
|
---|
| 355 | <term><filename class="libraryfile">libpanelw</filename></term>
|
---|
| 356 | <listitem>
|
---|
| 357 | <para>Contains functions to implement panels</para>
|
---|
| 358 | <indexterm zone="ch-system-ncurses libpanelw">
|
---|
| 359 | <primary sortas="c-libpanelw">libpanelw</primary>
|
---|
| 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
| 363 |
|
---|
| 364 | </variablelist>
|
---|
| 365 |
|
---|
| 366 | </sect2>
|
---|
| 367 |
|
---|
| 368 | </sect1>
|
---|