⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ncurses.html

📁 CLFS(Cross-Compiled Linux From Scratch)的文档 Version CLFS-SVN-20060417
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <meta http-equiv="Content-Type" content=    "application/xhtml+xml; charset=iso-8859-1" />    <title>      10.15.&nbsp;Ncurses-5.5    </title>    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />    <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=    "text/css" media="print" />  </head>  <body id="lfs" class="CLFS-SVN-20060417-MIPS">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS        </h4>        <h3>          Chapter&nbsp;10.&nbsp;Installing Basic System Software        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="gawk.html" title="Gawk-3.1.5">Prev</a>          <p>            Gawk-3.1.5          </p>        </li>        <li class="next">          <a accesskey="n" href="readline.html" title="Readline-5.1">Next</a>          <p>            Readline-5.1          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>        </li>      </ul>    </div>    <div class="wrap" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          10.15. Ncurses-5.5        </h1>      </div>      <div class="package" lang="en" xml:lang="en">        <p>          The Ncurses package contains libraries for terminal-independent          handling of character screens.        </p>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installation depends              on:</span></strong> <span class="seg">Bash, Binutils,              Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, and              Sed</span>            </div>          </div>        </div>      </div>      <div class="installation" lang="en" xml:lang="en">        <div class="titlepage">          <h2 class="sect2">            10.15.1. Installation of Ncurses          </h2>        </div>        <p>          Prepare Ncurses for compilation:        </p>        <pre class="userinput"><kbd class="command">./configure --prefix=/usr --libdir=/lib \    --with-shared --without-debug</kbd></pre>        <p>          Compile the package:        </p>        <pre class="userinput"><kbd class="command">make</kbd></pre>        <p>          This package does not come with a test suite.        </p>        <p>          Install the package:        </p>        <pre class="userinput"><kbd class="command">make install</kbd></pre>        <p>          Move the Ncurses static libraries to the proper location:        </p>        <pre class="userinput"><kbd class="command">mv -v /lib/lib{panel,menu,form,ncurses,ncurses++,curses}.a /usr/lib</kbd></pre>        <p>          Create symlinks in <tt class="filename">/usr/lib:</tt>        </p>        <pre class="userinput"><kbd class="command">rm -v /lib/lib{ncurses,menu,panel,form,curses}.soln -svf ../../lib/libncurses.so.5 /usr/lib/libcurses.soln -svf ../../lib/libncurses.so.5 /usr/lib/libncurses.soln -svf ../../lib/libmenu.so.5 /usr/lib/libmenu.soln -svf ../../lib/libpanel.so.5 /usr/lib/libpanel.soln -svf ../../lib/libform.so.5 /usr/lib/libform.so</kbd></pre>        <p>          Give the Ncurses libraries execute permissions:        </p>        <pre class="userinput"><kbd class="command">chmod -v 755 /lib/lib{panel,menu,form,ncurses}.so.5.5</kbd></pre>      </div>      <div class="content" lang="en" xml:lang="en">        <div class="titlepage">          <a id="contents-ncurses" name="contents-ncurses"></a>          <h2 class="sect2">            10.15.2. Contents of Ncurses          </h2>        </div>        <div class="segmentedlist">          <div class="seglistitem">            <div class="seg">              <strong><span class="segtitle">Installed              programs:</span></strong> <span class="seg">captoinfo (link to              tic), clear, infocmp, infotocap (link to tic), reset (link to              tset), tack, tic, toe, tput, and tset</span>            </div>            <div class="seg">              <strong><span class="segtitle">Installed              libraries:</span></strong> <span class="seg">libcurses.[a,so]              (link to libncurses.[a,so]), libform.[a,so], libmenu.[a,so],              libncurses++.a, libncurses.[a,so], and libpanel.[a,so]</span>            </div>          </div>        </div>        <div class="variablelist">          <h3>            <a id="id3669752" name="id3669752"></a>Short Descriptions          </h3>          <table border="0">            <col align="left" valign="top" />            <tbody>              <tr>                <td>                  <a id="captoinfo" name="captoinfo"></a><span class=                  "term"><span><strong class=                  "command">captoinfo</strong></span></span>                </td>                <td>                  <p>                    Converts a termcap description into a terminfo                    description                  </p>                </td>              </tr>              <tr>                <td>                  <a id="clear" name="clear"></a><span class=                  "term"><span><strong class=                  "command">clear</strong></span></span>                </td>                <td>                  <p>                    Clears the screen, if possible                  </p>                </td>              </tr>              <tr>                <td>                  <a id="infocmp" name="infocmp"></a><span class=                  "term"><span><strong class=                  "command">infocmp</strong></span></span>                </td>                <td>                  <p>                    Compares or prints out terminfo descriptions                  </p>                </td>              </tr>              <tr>                <td>                  <a id="infotocap" name="infotocap"></a><span class=                  "term"><span><strong class=                  "command">infotocap</strong></span></span>                </td>                <td>                  <p>                    Converts a terminfo description into a termcap                    description                  </p>                </td>              </tr>              <tr>                <td>                  <a id="reset" name="reset"></a><span class=                  "term"><span><strong class=                  "command">reset</strong></span></span>                </td>                <td>                  <p>                    Reinitializes a terminal to its default values                  </p>                </td>              </tr>              <tr>                <td>                  <a id="tack" name="tack"></a><span class=                  "term"><span><strong class=                  "command">tack</strong></span></span>                </td>                <td>                  <p>                    The terminfo action checker; it is mainly used to test                    the accuracy of an entry in the terminfo database                  </p>                </td>              </tr>              <tr>                <td>                  <a id="tic" name="tic"></a><span class=                  "term"><span><strong class=                  "command">tic</strong></span></span>                </td>                <td>                  <p>                    The terminfo entry-description compiler that translates a                    terminfo file from source format into the binary format                    needed for the ncurses library routines. A terminfo file                    contains information on the capabilities of a certain                    terminal                  </p>                </td>              </tr>              <tr>                <td>                  <a id="toe" name="toe"></a><span class=                  "term"><span><strong class=                  "command">toe</strong></span></span>                </td>                <td>                  <p>                    Lists all available terminal types, giving the primary                    name and description for each                  </p>                </td>              </tr>              <tr>                <td>                  <a id="tput" name="tput"></a><span class=                  "term"><span><strong class=                  "command">tput</strong></span></span>                </td>                <td>                  <p>                    Makes the values of terminal-dependent capabilities                    available to the shell; it can also be used to reset or                    initialize a terminal or report its long name                  </p>                </td>              </tr>              <tr>                <td>                  <a id="tset" name="tset"></a><span class=                  "term"><span><strong class=                  "command">tset</strong></span></span>                </td>                <td>                  <p>                    Can be used to initialize terminals                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libcurses" name="libcurses"></a><span class=                  "term"><tt class="filename">libcurses</tt></span>                </td>                <td>                  <p>                    A link to <tt class="filename">libncurses</tt>                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libncurses" name="libncurses"></a><span class=                  "term"><tt class="filename">libncurses</tt></span>                </td>                <td>                  <p>                    Contains functions to display text in many complex ways                    on a terminal screen; a good example of the use of these                    functions is the menu displayed during the kernel's                    <span><strong class="command">make                    menuconfig</strong></span>                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libform" name="libform"></a><span class=                  "term"><tt class="filename">libform</tt></span>                </td>                <td>                  <p>                    Contains functions to implement forms                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libmenu" name="libmenu"></a><span class=                  "term"><tt class="filename">libmenu</tt></span>                </td>                <td>                  <p>                    Contains functions to implement menus                  </p>                </td>              </tr>              <tr>                <td>                  <a id="libpanel" name="libpanel"></a><span class=                  "term"><tt class="filename">libpanel</tt></span>                </td>                <td>                  <p>                    Contains functions to implement panels                  </p>                </td>              </tr>            </tbody>          </table>        </div>      </div>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="gawk.html" title="Gawk-3.1.5">Prev</a>          <p>            Gawk-3.1.5          </p>        </li>        <li class="next">          <a accesskey="n" href="readline.html" title="Readline-5.1">Next</a>          <p>            Readline-5.1          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -