[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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 | <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 |
|
---|
[55d273f] | 28 | <para os="p1">This patch fixes an issue with some bash versions. This patch corrects the
|
---|
| 29 | issue:</para>
|
---|
| 30 |
|
---|
| 31 | <screen os="p2"><userinput>patch -Np1 -i ../&ncurses-bashfix-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 \
|
---|
[3f8be484] | 36 | --with-shared --without-debug</userinput></screen>
|
---|
| 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 |
|
---|
[94e6142] | 50 | <screen os="i"><userinput>mv -v /lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a /usr/lib</userinput></screen>
|
---|
[3f8be484] | 51 |
|
---|
[e0e40d3] | 52 | <para os="j">Create symlinks in <filename class="directory">/usr/lib:</filename></para>
|
---|
[3f8be484] | 53 |
|
---|
[94e6142] | 54 | <screen os="k"><userinput>rm -v /lib/lib{ncurses,menu,panel,form,curses}.so
|
---|
| 55 | ln -svf ../../lib/libncurses.so.5 /usr/lib/libcurses.so
|
---|
| 56 | ln -svf ../../lib/libncurses.so.5 /usr/lib/libncurses.so
|
---|
| 57 | ln -svf ../../lib/libmenu.so.5 /usr/lib/libmenu.so
|
---|
| 58 | ln -svf ../../lib/libpanel.so.5 /usr/lib/libpanel.so
|
---|
| 59 | ln -svf ../../lib/libform.so.5 /usr/lib/libform.so</userinput></screen>
|
---|
[3f8be484] | 60 |
|
---|
[040521bc] | 61 | <para os="l">Give the Ncurses dynamic libraries execute permissions:</para>
|
---|
[3f8be484] | 62 |
|
---|
[2df5a38] | 63 | <screen os="m"><userinput>chmod -v 755 /lib/lib{panel,menu,form,ncurses}.so.&ncurses-version;</userinput></screen>
|
---|
[3f8be484] | 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2 id="contents-ncurses" role="content">
|
---|
| 68 | <title>Contents of Ncurses</title>
|
---|
| 69 |
|
---|
| 70 | <segmentedlist>
|
---|
| 71 | <segtitle>Installed programs</segtitle>
|
---|
| 72 | <segtitle>Installed libraries</segtitle>
|
---|
| 73 |
|
---|
| 74 | <seglistitem>
|
---|
| 75 | <seg>captoinfo (link to tic), clear, infocmp, infotocap (link to tic),
|
---|
| 76 | reset (link to tset), tack, tic, toe, tput, and tset</seg>
|
---|
| 77 | <seg>libcurses.[a,so] (link to libncurses.[a,so]), libform.[a,so],
|
---|
| 78 | libmenu.[a,so], libncurses++.a, libncurses.[a,so], and
|
---|
| 79 | libpanel.[a,so]</seg>
|
---|
| 80 | </seglistitem>
|
---|
| 81 | </segmentedlist>
|
---|
| 82 |
|
---|
| 83 | <variablelist>
|
---|
| 84 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 85 | <?dbfo list-presentation="list"?>
|
---|
| 86 | <?dbhtml list-presentation="table"?>
|
---|
| 87 |
|
---|
| 88 | <varlistentry id="captoinfo">
|
---|
| 89 | <term><command>captoinfo</command></term>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>Converts a termcap description into a terminfo description</para>
|
---|
| 92 | <indexterm zone="ch-system-ncurses captoinfo">
|
---|
| 93 | <primary sortas="b-captoinfo">captoinfo</primary>
|
---|
| 94 | </indexterm>
|
---|
| 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
| 97 |
|
---|
| 98 | <varlistentry id="clear">
|
---|
| 99 | <term><command>clear</command></term>
|
---|
| 100 | <listitem>
|
---|
| 101 | <para>Clears the screen, if possible</para>
|
---|
| 102 | <indexterm zone="ch-system-ncurses clear">
|
---|
| 103 | <primary sortas="b-clear">clear</primary>
|
---|
| 104 | </indexterm>
|
---|
| 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="infocmp">
|
---|
| 109 | <term><command>infocmp</command></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>Compares or prints out terminfo descriptions</para>
|
---|
| 112 | <indexterm zone="ch-system-ncurses infocmp">
|
---|
| 113 | <primary sortas="b-infocmp">infocmp</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
| 118 | <varlistentry id="infotocap">
|
---|
| 119 | <term><command>infotocap</command></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>Converts a terminfo description into a termcap description</para>
|
---|
| 122 | <indexterm zone="ch-system-ncurses infotocap">
|
---|
| 123 | <primary sortas="b-infotocap">infotocap</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </listitem>
|
---|
| 126 | </varlistentry>
|
---|
| 127 |
|
---|
| 128 | <varlistentry id="reset">
|
---|
| 129 | <term><command>reset</command></term>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>Reinitializes a terminal to its default values</para>
|
---|
| 132 | <indexterm zone="ch-system-ncurses reset">
|
---|
| 133 | <primary sortas="b-reset">reset</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | <varlistentry id="tack">
|
---|
| 139 | <term><command>tack</command></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>The terminfo action checker; it is mainly used to test the
|
---|
| 142 | accuracy of an entry in the terminfo database</para>
|
---|
| 143 | <indexterm zone="ch-system-ncurses tack">
|
---|
| 144 | <primary sortas="b-tack">tack</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="tic">
|
---|
| 150 | <term><command>tic</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>The terminfo entry-description compiler that translates a
|
---|
| 153 | terminfo file from source format into the binary format needed for the
|
---|
| 154 | ncurses library routines. A terminfo file contains information on the
|
---|
| 155 | capabilities of a certain terminal</para>
|
---|
| 156 | <indexterm zone="ch-system-ncurses tic">
|
---|
| 157 | <primary sortas="b-tic">tic</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="toe">
|
---|
| 163 | <term><command>toe</command></term>
|
---|
| 164 | <listitem>
|
---|
| 165 | <para>Lists all available terminal types, giving the primary name and
|
---|
| 166 | description for each</para>
|
---|
| 167 | <indexterm zone="ch-system-ncurses toe">
|
---|
| 168 | <primary sortas="b-toe">toe</primary>
|
---|
| 169 | </indexterm>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
| 172 |
|
---|
| 173 | <varlistentry id="tput">
|
---|
| 174 | <term><command>tput</command></term>
|
---|
| 175 | <listitem>
|
---|
| 176 | <para>Makes the values of terminal-dependent capabilities available to
|
---|
| 177 | the shell; it can also be used to reset or initialize a terminal or
|
---|
| 178 | report its long name</para>
|
---|
| 179 | <indexterm zone="ch-system-ncurses tput">
|
---|
| 180 | <primary sortas="b-tput">tput</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="tset">
|
---|
| 186 | <term><command>tset</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>Can be used to initialize terminals</para>
|
---|
| 189 | <indexterm zone="ch-system-ncurses tset">
|
---|
| 190 | <primary sortas="b-tset">tset</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="libcurses">
|
---|
| 196 | <term><filename class="libraryfile">libcurses</filename></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>A link to <filename>libncurses</filename></para>
|
---|
| 199 | <indexterm zone="ch-system-ncurses libcurses">
|
---|
| 200 | <primary sortas="c-libcurses">libcurses</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="libncurses">
|
---|
| 206 | <term><filename class="libraryfile">libncurses</filename></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>Contains functions to display text in many complex ways on a
|
---|
| 209 | terminal screen; a good example of the use of these functions is the
|
---|
| 210 | menu displayed during the kernel's
|
---|
| 211 | <command>make menuconfig</command></para>
|
---|
| 212 | <indexterm zone="ch-system-ncurses libncurses">
|
---|
| 213 | <primary sortas="c-libncurses">libncurses</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
| 217 |
|
---|
| 218 | <varlistentry id="libform">
|
---|
| 219 | <term><filename class="libraryfile">libform</filename></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>Contains functions to implement forms</para>
|
---|
| 222 | <indexterm zone="ch-system-ncurses libform">
|
---|
| 223 | <primary sortas="c-libform">libform</primary>
|
---|
| 224 | </indexterm>
|
---|
| 225 | </listitem>
|
---|
| 226 | </varlistentry>
|
---|
| 227 |
|
---|
| 228 | <varlistentry id="libmenu">
|
---|
| 229 | <term><filename class="libraryfile">libmenu</filename></term>
|
---|
| 230 | <listitem>
|
---|
| 231 | <para>Contains functions to implement menus</para>
|
---|
| 232 | <indexterm zone="ch-system-ncurses libmenu">
|
---|
| 233 | <primary sortas="c-libmenu">libmenu</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="libpanel">
|
---|
| 239 | <term><filename class="libraryfile">libpanel</filename></term>
|
---|
| 240 | <listitem>
|
---|
| 241 | <para>Contains functions to implement panels</para>
|
---|
| 242 | <indexterm zone="ch-system-ncurses libpanel">
|
---|
| 243 | <primary sortas="c-libpanel">libpanel</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | </variablelist>
|
---|
| 249 |
|
---|
| 250 | </sect2>
|
---|
| 251 |
|
---|
| 252 | </sect1>
|
---|