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