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