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