website diff en/doc/scratchbook/base-ncurses.html @ rev 1344
Resize balinor logo to 120px
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 22 23:02:15 2021 +0100 (2021-01-22) |
parents | c2f9d5d0f314 |
children |
line diff
1.1 --- a/en/doc/scratchbook/base-ncurses.html Thu Mar 29 01:59:45 2012 +0300 1.2 +++ b/en/doc/scratchbook/base-ncurses.html Fri Jan 22 23:02:15 2021 +0100 1.3 @@ -1,23 +1,22 @@ 1.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 1.5 - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 1.7 +<!DOCTYPE html> 1.8 +<html lang="en"> 1.9 <head> 1.10 - <title>SliTaz Scratchbook - Base Ncurses</title> 1.11 - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 1.12 - <meta name="description" content="" /> 1.13 - <meta name="expires" content="never" /> 1.14 - <meta name="modified" content="2008-11-22 17:00:00" /> 1.15 - <meta name="publisher" content="www.slitaz.org" /> 1.16 - <meta name="author" content="Christophe Lincoln"/> 1.17 - <link rel="shortcut icon" href="favicon.ico" /> 1.18 - <link rel="stylesheet" type="text/css" href="book.css" /> 1.19 + <meta charset="UTF-8"> 1.20 + <title>SliTaz Scratchbook - Base Ncurses</title> 1.21 + <meta name="description" content=""> 1.22 + <meta name="expires" content="never"> 1.23 + <meta name="modified" content="2008-11-22 17:00:00"> 1.24 + <meta name="publisher" content="www.slitaz.org"> 1.25 + <meta name="author" content="Christophe Lincoln"> 1.26 + <link rel="shortcut icon" href="favicon.ico"> 1.27 + <link rel="stylesheet" href="book.css"> 1.28 </head> 1.29 -<body bgcolor="#ffffff"> 1.30 +<body> 1.31 1.32 <!-- Header and quick navigation --> 1.33 <div id="header"> 1.34 <div align="right" id="quicknav"> 1.35 - <a name="top"></a> 1.36 + <span id="top"></span> 1.37 <a href="base-apps.html">Base apps</a> | 1.38 <a href="index.html">Table of contents</a> | 1.39 <a href="locale.html">Locale & i18n</a> 1.40 @@ -49,21 +48,21 @@ 1.41 <li><a href="#rhapsody">rhapsody-0.28b</a> - IRC chat client.</li> 1.42 <li><a href="#initramfs-iso">Generate the initramfs and an ISO image.</a></li> 1.43 </ul> 1.44 -<a name="about"></a> 1.45 -<h3><font color="#6c0023">About</font></h3> 1.46 + 1.47 +<h3 id="about">About</h3> 1.48 <p> 1.49 This chapter describes the construction and installation of some ncurses applications 1.50 and libraries in SliTaz. The procedure consists of moving into the /src directory, 1.51 downloading the sources for the application in question, unpacking, reading the README or 1.52 INSTALL file(s), compiling and installing the binary in SliTaz. Once the applications 1.53 -are installed, we can create a new initramfs, copy it to the root of the cdrom and generate 1.54 +are installed, we can create a new initramfs, copy it to the root of the CD-ROM and generate 1.55 a new ISO image. For this you can also use <code>mktaziso</code> in 1.56 <a href="http://doc.slitaz.org/en:cookbook:slitaztools">SliTaz tools</a>. 1.57 </p> 1.58 <h4>Assign an environment variable ($fs)</h4> 1.59 <p> 1.60 An environmental variable can't specify the path to the directory, just the name of the directory. 1.61 -We will affect a variable '$fs' to indicate the path to the root filesystem 1.62 +We will affect a variable ‘$fs’ to indicate the path to the root filesystem 1.63 (rootfs). To do this, we venture into the working directory SliTaz/, and type: 1.64 </p> 1.65 <pre> # export fs=$PWD/rootfs 1.66 @@ -73,8 +72,8 @@ 1.67 </p> 1.68 <pre> # echo $fs 1.69 </pre> 1.70 -<a name="ncurses"></a> 1.71 -<h3><font color="#6c0023">ncurses-5.6 - Terminal utilities and libraries</font></h3> 1.72 + 1.73 +<h3 id="ncurses">ncurses-5.6 - Terminal utilities and libraries</h3> 1.74 <p> 1.75 ncurses (<a href="http://dickey.his.com/ncurses/">dickey.his.com/ncurses/</a>) contains 1.76 functions to display text in different ways on the screen of a Linux terminal and also provides 1.77 @@ -124,8 +123,8 @@ 1.78 </p> 1.79 <pre> # cp -a _pkg/usr/share/tabset $fs/usr/share 1.80 </pre> 1.81 -<a name="clex"></a> 1.82 -<h3><font color="#6c0023">clex-3.16 - File Manager</font></h3> 1.83 + 1.84 +<h3 id="clex">clex-3.16 - File Manager</h3> 1.85 <p> 1.86 CLEX (<a href="http://www.clex.sk/">http://www.clex.sk/</a>) is a small ncurses file 1.87 manager (160 KB). The configuration file (rc) is ~/clexrc; ~/.clexbm is used for 1.88 @@ -154,8 +153,8 @@ 1.89 libc.so.6 => /lib/libc.so.6 (0x40064000) 1.90 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) 1.91 </pre> 1.92 -<a name="nano"></a> 1.93 -<h3><font color="#6c0023">nano-2.0.6 - Advanced Text Editor</font></h3> 1.94 + 1.95 +<h3 id="nano">nano-2.0.6 - Advanced Text Editor</h3> 1.96 <p> 1.97 GNU nano (<a href="http://www.nano-editor.org/">www.nano-editor.org</a>) is a well known, 1.98 fast, effective GNU/Linux text editor that supports colored syntax. 1.99 @@ -211,8 +210,8 @@ 1.100 <pre> # cd .. 1.101 # cp -a slitaz-tools-1.1/etc/nanorc $fs/etc 1.102 </pre> 1.103 -<a name="retawq"></a> 1.104 -<h3><font color="#6c0023">retawq-0.2.6c - Text mode Web browser</font></h3> 1.105 + 1.106 +<h3 id="retawq">retawq-0.2.6c - Text mode Web browser</h3> 1.107 <p> 1.108 retawq (<a href="http://retawq.sourceforge.net/">retawq.sourceforge.net</a>) 1.109 is a small text-only web browser. We only flag a few useful options when configuring, 1.110 @@ -260,10 +259,9 @@ 1.111 page with a list of favorite web sites. You can also copy the docs (/documents) from retawq 1.112 to /usr/share/doc/retawq. 1.113 </p> 1.114 -<a name="htop"></a> 1.115 -<h3><font color="#6c0023">htop-6.0.5 - System process viewer</font></h3> 1.116 + 1.117 +<h3 id="htop">htop-6.0.5 - System process viewer</h3> 1.118 <p> 1.119 - 1.120 htop (<a href="http://htop.sourceforge.net/">htop.sourceforge.net/</a>) is software 1.121 that displays system processes using ncurses. 1.122 </p> 1.123 @@ -293,10 +291,9 @@ 1.124 libc.so.6 => /lib/libc.so.6 (0xb7e20000) 1.125 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fc9000) 1.126 </pre> 1.127 -<a name="dialog"></a> 1.128 -<h3><font color="#6c0023">dialog-1.1.20070409 - GUI shell scripts</font></h3> 1.129 + 1.130 +<h3 id="dialog">dialog-1.1.20070409 - GUI shell scripts</h3> 1.131 <p> 1.132 - 1.133 dialog (<a href="http://invisible-island.net/dialog/dialog.html">invisible-island.net/dialog/dialog.html</a>), 1.134 is a utility to build GUI-based consoles: 1.135 </p> 1.136 @@ -331,10 +328,9 @@ 1.137 The dialog configuration file is /etc/dialogrc and/or ~/.dialogrc for each user. 1.138 There are also full examples of scripts in the /sample directory in the sources of dialog. 1.139 </p> 1.140 -<a name="ninvaders"></a> 1.141 -<h3><font color="#6c0023">Ninvaders-0.1.1 - Space Invaders clone</font></h3> 1.142 + 1.143 +<h3 id="ninvaders">Ninvaders-0.1.1 - Space Invaders clone</h3> 1.144 <p> 1.145 - 1.146 ninvaders (<a href="http://ninvaders.sourceforge.net/">http://ninvaders.sourceforge.net/</a>) 1.147 is a clone of the popular Space Invaders game (46 KB). We begin by placing ourselves in the 1.148 /src directory, then we download, untar, compile, clean using strip and copy the nInvaders binary 1.149 @@ -348,8 +344,8 @@ 1.150 # strip -v nInvaders 1.151 # cp nInvaders $fs/usr/games 1.152 </pre> 1.153 -<a name="bastet"></a> 1.154 -<h3><font color="#6c0023">bastet-0.41 - Bastard Tetris clone</font></h3> 1.155 + 1.156 +<h3 id="bastet">bastet-0.41 - Bastard Tetris clone</h3> 1.157 <p> 1.158 A game of Tetris (17 KB): 1.159 </p> 1.160 @@ -363,8 +359,8 @@ 1.161 # touch $fs/var/games/bastet.scores 1.162 # chmod 666 $fs/var/games/bastet.scores 1.163 </pre> 1.164 -<a name="rhapsody"></a> 1.165 -<h3><font color="#6c0023">rhapsody-0.28b - IRC chat client</font></h3> 1.166 + 1.167 +<h3 id="rhapsody">rhapsody-0.28b - IRC chat client</h3> 1.168 <p> 1.169 Rhapsody (<a href="http://rhapsody.sourceforge.net/">http://rhapsody.sourceforge.net/</a>) 1.170 is a fast and lightweight chat client supporting the IRC protocol. It provides a menu for 1.171 @@ -399,11 +395,11 @@ 1.172 <p> 1.173 You can customize rhapsody via ~/.rhapsodyrc or use <Ctrl+T> for options: 1.174 </p> 1.175 -<a name="initramfs-iso"></a> 1.176 -<h3><font color="#6c0023">Generate the initramfs and an ISO image</font></h3> 1.177 + 1.178 +<h3 id="initramfs-iso">Generate the initramfs and an ISO image</h3> 1.179 <p> 1.180 -To create a new ISO image, you can use 'mktaziso' in SliTaz tools. 1.181 -Or you can create a new initramfs image, copy it to /boot in the root of the cdrom 1.182 +To create a new ISO image, you can use ‘mktaziso’ in SliTaz tools. 1.183 +Or you can create a new initramfs image, copy it to /boot in the root of the CD-ROM 1.184 (rootcd) and finally generate an ISO image with genisoimage: 1.185 </p> 1.186 <pre> # cd $fs