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