source: postlfs/editors/nano.xml@ 7bd6b04

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 7bd6b04 was 7bd6b04, checked in by Thomas Trepl <thomas@…>, 4 years ago

Upgrade nano-4.7

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22506 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.1 KB
RevLine 
[b5951ec]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[b5951ec]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[9513623]7 <!-- Note minor version in URL -->
[a49d043c]8 <!ENTITY nano-download-http "https://www.nano-editor.org/dist/v4/nano-&nano-version;.tar.xz">
[9513623]9 <!ENTITY nano-download-ftp " ">
[7bd6b04]10 <!ENTITY nano-md5sum "8622b7b733dc5d9645f5ceaec24e6ba6">
[4a4d8dba]11 <!ENTITY nano-size "1.4 MB">
[c814c14]12 <!ENTITY nano-buildsize "22 MB">
[0e7f80e4]13 <!ENTITY nano-time "0.2 SBU">
[b5951ec]14]>
15
[fd680fb]16<sect1 id="nano" xreflabel="nano-&nano-version;">
[2cfa892]17 <?dbhtml filename="nano.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Nano-&nano-version;</title>
25
26 <indexterm zone="nano">
27 <primary sortas="a-Nano">Nano</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Nano</title>
32
[d78d84d]33 <para>
34 The <application>Nano</application> package contains a small,
35 simple text editor which aims to replace <application>Pico</application>,
36 the default editor in the <application>Pine</application> package.
37 </para>
[2cfa892]38
[57e1c09]39 &lfs90_checked;
[c70fd34]40
[2cfa892]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[d78d84d]44 <para>
45 Download (HTTP): <ulink url="&nano-download-http;"/>
46 </para>
[2cfa892]47 </listitem>
48 <listitem>
[d78d84d]49 <para>
50 Download (FTP): <ulink url="&nano-download-ftp;"/>
51 </para>
[2cfa892]52 </listitem>
53 <listitem>
[d78d84d]54 <para>
55 Download MD5 sum: &nano-md5sum;
56 </para>
[2cfa892]57 </listitem>
58 <listitem>
[d78d84d]59 <para>
60 Download size: &nano-size;
61 </para>
[2cfa892]62 </listitem>
63 <listitem>
[d78d84d]64 <para>
65 Estimated disk space required: &nano-buildsize;
66 </para>
[2cfa892]67 </listitem>
68 <listitem>
[d78d84d]69 <para>
70 Estimated build time: &nano-time;
71 </para>
[2cfa892]72 </listitem>
73 </itemizedlist>
74
[3597eb6]75 <para condition="html" role="usernotes">User Notes:
[4890200]76 <ulink url="&blfs-wiki;/Nano"/>
77 </para>
[2cfa892]78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of Nano</title>
82
[d78d84d]83 <para>Install <application>Nano</application> by running the following
[2cfa892]84 commands:</para>
85
[fad8db2]86<screen><userinput>./configure --prefix=/usr \
[d78d84d]87 --sysconfdir=/etc \
[30fe7dd]88 --enable-utf8 \
89 --docdir=/usr/share/doc/nano-&nano-version; &amp;&amp;
[2cfa892]90make</userinput></screen>
[d7444dee]91
[d78d84d]92 <para>
93 This package does not come with a test suite.
94 </para>
[40729db]95
[d78d84d]96 <para>
97 Now, as the <systemitem class="username">root</systemitem> user:
98 </para>
[d7444dee]99
[2cfa892]100<screen role="root"><userinput>make install &amp;&amp;
[8d3f3780]101install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-&nano-version;</userinput></screen>
[b5951ec]102
[2cfa892]103 </sect2>
[b5951ec]104
[c70fd34]105 <sect2 role="commands">
106 <title>Command Explanations</title>
107
[90c160c]108 <para>
109 <parameter>--enable-utf8</parameter>: This switch enables unicode support
[4890200]110 in <application>Nano</application>.
111 </para>
112
[c70fd34]113 </sect2>
114
[2cfa892]115 <sect2 role="configuration">
116 <title>Configuring nano</title>
[b5951ec]117
[2cfa892]118 <sect3 id="nano-config">
119 <title>Config Files</title>
[b5951ec]120
[d78d84d]121 <para><filename>/etc/nanorc</filename> and
[2cfa892]122 <filename>~/.nanorc</filename></para>
[b5951ec]123
[2cfa892]124 <indexterm zone="nano nano-config">
[d78d84d]125 <primary sortas="e-etc-nanorc">/etc/nanorc</primary>
[2cfa892]126 </indexterm>
127
128 <indexterm zone="nano nano-config">
129 <primary sortas="e-AA.nanorc">~/.nanorc</primary>
130 </indexterm>
131
132 </sect3>
133
134 <sect3>
135 <title>Configuration Information</title>
136
[d78d84d]137 <para>
138 Example configuration (create as a system-wide
139 <filename>/etc/nanorc</filename> or a personal
140 <filename>~/.nanorc</filename> file)
141 </para>
[2cfa892]142
143<screen><literal>set autoindent
[ce34cbb]144set constantshow
[b5951ec]145set fill 72
146set historylog
147set multibuffer
148set nohelp
[ce34cbb]149set positionlog
150set quickblank
[b5951ec]151set regexp
[2cfa892]152set suspend</literal></screen>
153
[d78d84d]154 <para>
[b285074]155 Check the <filename>sample.nanorc</filename> file in the installed
156 documentation directory. It includes color configurations and has
157 some documentation included in the comments.
[d78d84d]158 </para>
[2cfa892]159
[fcabde3c]160 <para>
161 Syntax highlighting is provided for several file types, in
162 <filename class="directory">/usr/share/nano/</filename> directory.
163 E.g., for shell scripts, you can insert
164 <option>include /usr/share/nano/sh.nanorc</option> in the personal or
165 global configuration file. If you wish highlighting for all supported
166 files, use <option>include /usr/share/nano/*.nanorc</option>.
167 </para>
168
[2cfa892]169 </sect3>
170
171 </sect2>
172
173 <sect2 role="content">
174 <title>Contents</title>
175
176 <segmentedlist>
177 <segtitle>Installed Programs</segtitle>
[c3c56b2]178 <segtitle>Installed Libraries</segtitle>
[0af9f257]179 <segtitle>Installed Directories</segtitle>
[2cfa892]180
181 <seglistitem>
[d78d84d]182 <seg>
[30fe7dd]183 nano and rnano (symlink)
[d78d84d]184 </seg>
[c3c56b2]185 <seg>
186 None
187 </seg>
[d78d84d]188 <seg>
189 /usr/share/nano and
190 /usr/share/doc/nano-&nano-version;
191 </seg>
[2cfa892]192 </seglistitem>
193 </segmentedlist>
194
195 <variablelist>
196 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
197 <?dbfo list-presentation="list"?>
198 <?dbhtml list-presentation="table"?>
199
200 <varlistentry id="nano-prog">
201 <term><command>nano</command></term>
202 <listitem>
[d78d84d]203 <para>
204 is a small, simple text editor which aims to replace
205 <application>Pico</application>, the default editor in the
206 <application>Pine</application> package.
207 </para>
[2cfa892]208 <indexterm zone="nano nano-prog">
209 <primary sortas="b-nano">nano</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
[0af9f257]214 <varlistentry id="rnano-prog">
215 <term><command>rnano</command></term>
216 <listitem>
[d78d84d]217 <para>
218 is a restricted mode for <command>nano</command>.
219 </para>
[0af9f257]220 <indexterm zone="nano rnano-prog">
221 <primary sortas="b-rnano">rnano</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
[2cfa892]226 </variablelist>
227
228 </sect2>
[f45b1953]229
230</sect1>
Note: See TracBrowser for help on using the repository browser.