faq.html 31 KB
Newer Older
Chris Allegretta's avatar
Chris Allegretta committed
1
2
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
3
<title>The GNU nano editor FAQ</title>
Chris Allegretta's avatar
Chris Allegretta committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.73 [en] (X11; U; Linux 2.2.16 i586) [Netscape]">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000">

<h1>
<font color="#CC0000">The nano FAQ</font></h1>
<h2>
<font color="#330000">Table of Contents</font></h2>

<h2>
<font color="#330000"><a href="#1">1.&nbsp; General</a></font></h2>

<blockquote><font color="#330000"><a href="#1.1">1.1 About this FAQ.</a></font>
<br><font color="#330000"><a href="#1.2">1.2. How do I contribute to it?</a></font>
20
<br><font color="#330000"><a href="#1.3">1.3. What is GNU nano?</a></font>
Chris Allegretta's avatar
Chris Allegretta committed
21
22
23
24
<br><font color="#330000"><a href="#1.4">1.4. What is the history behind
nano?</a></font>
<br><font color="#330000"><a href="#1.5">1.5. Why the name change from
TIP?</a></font>
25
<br><font color="#330000"><a href="#1.6">1.6. What is the current version
Chris Allegretta's avatar
Chris Allegretta committed
26
of nano?</a></font>
27
<br><font color="#330000"><a href="#1.7">1.7. I want to read the manpage
Chris Allegretta's avatar
Chris Allegretta committed
28
29
30
without having to download the program!</a></font></blockquote>

<h2>
31
32
<font color="#330000"><a href="#2">2. Where to get GNU 
nano</a></font></h2>
Chris Allegretta's avatar
Chris Allegretta committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

<blockquote><font color="#330000"><a href="#2.1">2.1. FTP and WWW sites
that carry nano.</a></font>
<br><font color="#330000"><a href="#2.2">2.2. Redhat and derivatives (.rpm)
packages.</a></font>
<br><font color="#330000"><a href="#2.3">2.3. Debian (.deb) packages.</a></font>
<br><font color="#330000"><a href="#2.4">2.4. By CVS (for the brave).</a></font></blockquote>

<h2>
<font color="#330000"><a href="#3">3. Installation and Configuration</a></font></h2>

<blockquote><font color="#330000"><a href="#3.1">3.1. How do install the
RPM or DEB package?</a></font>
<br><font color="#330000"><a href="#3.2">3.2. Compiling from source: WHAT
THE HECK DO I DO NOW?</a></font>
<br><font color="#330000"><a href="#3.2">3.3. Why does everything go into
/usr/local?</a></font>
<br><font color="#330000"><a href="#3.4">3.4. I get errors about 'bindtextdomain',
51
52
'gettext' and/or 'gettextdomain'.&nbsp; What can I do about it?</a></font>
<br><font color="#330000"><a href="#3.5">3.5. Nano should automatically 
53
54
run strip on the binary when installing it!</a></font>
<br><font color="#330000"><a href="#3.6">3.6. How can I make the
Chris Allegretta's avatar
Chris Allegretta committed
55
56
57
58
59
executable smaller?  This is too bloated!</a></font>
<br><font color="#330000"><a href="#3.7">3.7. Tell me more about this
multibuffer stuff!</a></font>
<br><font color="#330000"><a href="#3.8">3.8. How do I make a .nanorc file
that nano will read when I start it?</a></font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
60
61
62
63
64
65
66
67
68
69

<h2>
<font color="#330000"><a href="#4">4. Running</a></font></h2>

<blockquote><font color="#330000"><a href="#4.1">4.1. Ack!&nbsp; My backspace/delete/enter/double
bucky/meta key doesn't seem to work!&nbsp; What can I do?</a></font>
<br><font color="#330000"><a href="#4.2">4.2. Nano crashes when I type
&lt;insert keystroke here>!</a></font>
<br><font color="#330000"><a href="#4.3">4.3. Nano crashes when I resize
my window.&nbsp;&nbsp; How can I fix that?</a></font>
70
71
<br><font color="#330000"><a href="#4.4">4.4. Why does nano show ^\
in the shortcut list instead of ^J?</a></font>
72
73
<br><font color="#330000"><a href="#4.5">4.5. When I type in a
search string, the string I last searched for is already in front of
74
my cursor!  What happened?!</a></font>
75
<br><font color="#330000"><a href="#4.6">4.6. I get the message "NumLock
76
glitch detected.  Keypad will malfunction with NumLock off." What
77
78
79
gives?</a></font>
<br><font color="#330000"><a href="#4.7">4.7. How do I make nano my
default editor (in Pine, mutt, etc.)?</a></font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
80
81
82
83
84
85
86
87
88
89

<h2>
<font color="#330000"><a href="#5">5. Internationalization</a></font></h2>

<blockquote><font color="#330000"><a href="#5.1">5.1. There's no translation
for my language!</a></font>
<br><font color="#330000"><a href="#5.2">5.2. I don't like the translation
for &lt;x> in my language.&nbsp;&nbsp; How can I fix it?</a></font></blockquote>

<h2>
Chris Allegretta's avatar
Chris Allegretta committed
90
<font color="#330000"><a href="#6">6. Advocacy and Licensing</a></font></h2>
Chris Allegretta's avatar
Chris Allegretta committed
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136

<blockquote><font color="#330000"><a href="#6.1">6.1. Why should I use
nano instead of Pico?</a></font>
<br><font color="#330000"><a href="#6.2">6.2. Why should I use Pico instead
of nano?</a></font>
<br><font color="#330000"><a href="#6.3">6.3. What is so bad about the
PINE license?</a></font>
<br><font color="#330000"><a href="#6.4">6.4. Okay, well what mail program
should I use then?</a></font>
<br><font color="#330000"><a href="#6.5">6.5. Why doesn't UW simply change
their license?</a></font>
<br><font color="#330000"><a href="#6.6">6.6. What if tomorrow UW changes
the license to be truly Free Software?</a></font></blockquote>

<h2>
<font color="#330000"><a href="#7">7. Miscellaneous</a></font></h2>

<blockquote><font color="#330000"><a href="#7.1">7.1. Nano related mailing
lists.</a></font>
<br><font color="#330000"><a href="#7.2">7.2. I want to send the development
team a big load of cash (or just a thank you).</a></font>
<br><font color="#330000"><a href="#7.3">7.3. How do I submit a patch?</a></font>
<br><font color="#330000"><a href="#7.4">7.4. How do I join the development
team?</a></font>
<br><font color="#330000"><a href="#7.5">7.5. Can I have CVS write access?</a></font></blockquote>

<h2>
<a href="#8">8. ChangeLog</a></h2>

<hr WIDTH="100%">
<br>&nbsp;
<h1>
<a NAME="1"></a><font color="#330000">1.&nbsp; General</font></h1>

<h2>
<a NAME="1.1"></a><font color="#330000">1.1 About this FAQ.</font></h2>

<blockquote><font color="#330000">This FAQ was written and is maintained
by Chris Allegretta &lt;<a href="mailto:chrisa@asty.org">chrisa@asty.org</a>>,
who also happens to be the creator of nano.&nbsp;&nbsp; Maybe someone else
will volunteer to maintain this FAQ someday, who knows...</font></blockquote>

<h2>
<a NAME="1.2"></a><font color="#330000">1.2. How do I contribute to it?</font></h2>

<blockquote><font color="#330000">Your best bet is to send it to the nano
Chris Allegretta's avatar
Chris Allegretta committed
137
138
email address, <a
href="mailto:nano@nano-editor.org">nano@nano-editor.org</a> and if
Chris Allegretta's avatar
Chris Allegretta committed
139
140
141
it is useful enough it will be included in future versions.</font></blockquote>

<h2>
142
<a NAME="1.3"></a><font color="#330000">1.3. What is GNU nano?</font></h2>
Chris Allegretta's avatar
Chris Allegretta committed
143

144
145
146
147
148
<blockquote><font color="#330000">GNU Nano is designed to be a free
replacement for the Pico text editor, part of the PINE email suite from <a
href="http://www.washington.edu/pine">The University of
Washington</a>.&nbsp; It aims to "emulate Pico as closely as possible and
perhaps include extra functionality.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
149
150
151
152
153
154
155
156
157
158
159

<h2>
<a NAME="1.4"></a><font color="#330000">1.4. What is the history behind
nano?</font></h2>

<blockquote><font color="#330000">Funny you should ask!</font>
<p><b><font color="#330000">In the beginning...</font></b>
<p><font color="#330000">For years Pine was THE program used to read email
on a Unix system.&nbsp; The Pico text editor is the portion of the program
one would use to compose his or her mail messages.&nbsp; Many beginners
to Unix flocked to Pico and Pine because of their well organized, easy
160
to use interfaces.&nbsp; With the proliferation of GNU/Linux in the mid to
Chris Allegretta's avatar
Chris Allegretta committed
161
162
late 90's, many University students became intimately familiar with the
strengths (and weaknesses) of Pine and Pico.</font>
163
164
<p><b><font color="#330000">Then came Debian...</font></b>
<p><font color="#330000">The <a href="http://www.debian.org">Debian GNU/Linux</a>
Chris Allegretta's avatar
Chris Allegretta committed
165
166
167
168
169
170
171
172
173
distribution, known for its strict standards in distributing truly "free"
software (i.e. had no restrictions on redistribution), would not include
a binary package for Pine or Pico.&nbsp; Many people had a serious dilemma:&nbsp;
they loved these programs, but they were not truly free software in the
<a href="http://www.gnu.org/philosophy/free-sw.html">GNU</a>
sense of the word.</font>
<p><b><font color="#330000">The event...</font></b>
<p><font color="#330000">It was in late 1999 when Chris Allegretta (our
hero) was yet again complaining to himself about the less-than-perfect
Chris Allegretta's avatar
Chris Allegretta committed
174
license Pico was distributed under, the 1000 makefiles that came with
Chris Allegretta's avatar
Chris Allegretta committed
175
it and how just a few small improvements could make it the Best Editor
176
in the World (TM).&nbsp; Having been a convert from Slackware to Debian,
Chris Allegretta's avatar
Chris Allegretta committed
177
178
179
180
181
182
183
he missed having a simple binary package that included Pine and Pico, and
had grown tired of downloading them himself.</font>
<p><font color="#330000">Finally something snapped inside and Chris coded
and hacked like a madman for many hours straight one weekend to make a
(barely usable) Pico clone, at the time called TIP (Tip Isn't Pico).&nbsp;
The program could not be invoked without a filename, could not save files,
had no help menu, spell checker, and so forth.&nbsp; But over time it improved,
184
and with the help of a few great coders it matured to the (hopefully) stable
185
186
state it is today.
<p><font color="#330000">In February 2001, nano has been declared an
187
188
official GNU program by Richard Stallman.  Nano also reached it's first
production release on March 22, 2001.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
189
190
191
192
193
194
195
196
197

<h2>
<a NAME="1.5"></a><font color="#330000">1.5. Why the name change from TIP?</font></h2>

<blockquote><font color="#330000">On January 10, 2000, TIP was officially
renamed to nano because of a namespace conflict with another program called
'tip'.&nbsp; The original 'tip' program "establishes a full duplex terminal
connection to a remote host", and was included with many older Unix systems
(and newer ones like Solaris). The conflict was not noticed at first because
198
there is no 'tip' utility included with most GNU/Linux distributions (where
Chris Allegretta's avatar
Chris Allegretta committed
199
200
201
202
203
204
205
nano was developed).</font></blockquote>

<h2>
<a NAME="1.6"></a><font color="#330000">1.6 What is the current version
of nano?</font></h2>

<blockquote><font color="#330000">The current version of nano *should*
Chris Allegretta's avatar
Chris Allegretta committed
206
be 1.1.1.&nbsp; Of course you should always check the nano hompage to
Chris Allegretta's avatar
Chris Allegretta committed
207
208
209
210
211
212
213
see what the latest and greatest version is.</font></blockquote>

<h2>
<a NAME="1.7"></a><font color="#330000">1.7. I want to read the man page
without having to download the program!</font></h2>

<blockquote><font color="#330000">Jeez, demanding, aren't we?&nbsp;&nbsp;
Chris Allegretta's avatar
Chris Allegretta committed
214
Okay, look <a href="http://www.nano-editor.org/dist/nano.1.html">here</a>.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
215
216
217

<hr WIDTH="100%">
<h1>
218
<a NAME="2"></a><font color="#330000">2. Where to get GNU nano</font></h1>
Chris Allegretta's avatar
Chris Allegretta committed
219
220
221
222
223
224
225
226
227

<h2>
<a NAME="2.1"></a><font color="#330000">2.1. FTP and WWW sites that carry
nano.</font></h2>

<blockquote><font color="#330000">The nano distribution can be downloaded
at the following fine web and ftp sites:</font>
<ul>
<li>
Chris Allegretta's avatar
Chris Allegretta committed
228
<font color="#330000"><a href="http://www.nano-editor.org/dist">http://www.nano-editor.org/dist</a></font></li>
Chris Allegretta's avatar
Chris Allegretta committed
229
230
231
232
233

<li>
<font color="#330000"><a href="http://www.ewtoo.org/~astyanax/nano/dist">http://www.ewtoo.org/~astyanax/nano/dist</a></font></li>

<li>
Chris Allegretta's avatar
Chris Allegretta committed
234
<font color="#330000"><a href="ftp://ftp.nano-editor.org/pub/nano">ftp://ftp.nano-editor.org/pub/nano</a></font></li>
Chris Allegretta's avatar
Chris Allegretta committed
235
236
237
238
239
240
241
242
243
244
245
246
247

<li>
<font color="#330000"><a href="ftp://nano.sourceforge.net/pub/nano/">ftp://nano.sourceforge.net/pub/nano</a></font></li>
</ul>
</blockquote>

<h2>
<a NAME="2.2"></a><font color="#330000">2.2. Redhat and derivatives (.rpm)
packages.</font></h2>

<blockquote>
<ul>
<li>
Chris Allegretta's avatar
Chris Allegretta committed
248
<font color="#330000"><a href="http://www.nano-editor.org/dist/RPMS">http://www.nano-editor.org/dist/RPMS</a></font></li>
Chris Allegretta's avatar
Chris Allegretta committed
249
250
251
252
253

<li>
<font color="#330000"><a href="http://www.ewtoo.org/~astyanax/nano/dist/RPMS">http://www.ewtoo.org/~astyanax/nano/dist/RPMS</a></font></li>

<li>
Chris Allegretta's avatar
Chris Allegretta committed
254
<font color="#330000"><a href="ftp://ftp.nano-editor.org/pub/nano/RPMS">ftp://ftp.nano-editor.org/pub/nano/RPMS</a></font></li>
Chris Allegretta's avatar
Chris Allegretta committed
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272

<li>
<font color="#330000"><a href="ftp://nano.sourceforge.net/pub/nano/RPMS">ftp://nano.sourceforge.net/pub/nano/RPMS</a></font></li>
</ul>
<font color="#330000">Additionally, check out the Redhat contribs section
at:</font>
<ul>
<li>
<font color="#330000"><a href="http://metalab.unc.edu/pub/Linux/distributions/redhat/contrib/libc6/i386">http://metalab.unc.edu/pub/Linux/distributions/redhat/contrib/libc6/i386</a></font></li>

<li>
<font color="#330000"><a href="ftp://metalab.unc.edu/pub/Linux/distributions/redhat/contrib/libc6/i386">ftp://metalab.unc.edu/pub/Linux/distributions/redhat/contrib/libc6/i386</a></font></li>
</ul>
</blockquote>

<h2>
<a NAME="2.3"></a><font color="#330000">2.3. Debian (.deb) packages.</font></h2>

273
<blockquote><font color="#330000">For Debian users, you can check out the
Chris Allegretta's avatar
Chris Allegretta committed
274
275
276
current nano packages for:</font>
<ul>
<li>
277
<font color="#330000"><a href="http://www.debian.org/Packages/stable/editors/nano.html">stable</a></font></li>
Chris Allegretta's avatar
Chris Allegretta committed
278
279
280
281
282

<li>
<font color="#330000"><a href="http://www.debian.org/Packages/unstable/editors/nano.html">unstable</a></font></li>
</ul>
<font color="#330000">Note that versions &lt; 0.9.10 are probably not for
283
284
285
those wanting to get serious work done, so if you are using Debian 2.2, check
that you have updated to 2.2r3, which comes with nano 0.9.23. If you're 
tracking unstable, you probably have the newest version already.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310

<h2>
<a NAME="2.4"></a><font color="#330000">2.4. By CVS (for the brave).</font></h2>

<blockquote><font color="#330000">For the 'bleeding edge' current version
of nano, you can use CVS to download the current source code.&nbsp; <b>Note:</b>
believe it or not, by downloading code that has not yet stabilized into
an official release, there could quite possibly be bugs, in fact the code
may not even compile!&nbsp; Anyway, see <a href="https://sourceforge.net/cvs/?group_id=1304">the
nano CVS page</a> for info on anonymous CVS access to the nano source.</font></blockquote>

<hr WIDTH="100%">
<h1>
<a NAME="3"></a><font color="#330000">3. Installation and Configuration</font></h1>

<h2>
<a NAME="3.1"></a><font color="#330000">3.1. How do install the RPM or
DEB package?</font></h2>

<blockquote><font color="#330000">It's simple really!&nbsp; As root, type
<b>rpm
-Uvh nano-x.y.z-1.i386.rpm</b> if you have a Redhat-ish system or
<b>dpkg
-i nano_x.y.z-1.deb</b> if you have a Debian-ish system, where
<b>x.y.z</b>
Jordi Mallach's avatar
   
Jordi Mallach committed
311
is the release of nano.&nbsp; There are other programs to install packages,
Chris Allegretta's avatar
Chris Allegretta committed
312
313
314
315
316
317
318
319
320
321
322
and if you wish to use those, knock yourself out.</font></blockquote>

<h2>
<a NAME="3.2"></a><font color="#330000">3.2. Compiling from source: WHAT
THE HECK DO I DO NOW?</font></h2>

<blockquote><font color="#330000">Okay, take a deep breath, this really
isn't hard.&nbsp; Unpack the nano source with a command like:</font>
<p><b><font color="#330000">tar -zxvf nano-x.y.z.tar.gz</font></b>
<p><font color="#330000">If you get error messages about the -z option,
try this:</font>
Chris Allegretta's avatar
Chris Allegretta committed
323
<p><b><font color="#330000">gzip -dc nano-x.y.z.tar.gz | tar xvf -</font></b>
Chris Allegretta's avatar
Chris Allegretta committed
324
325
326
<p><font color="#330000">(again, where x.y.z is the version number in question).&nbsp;
Then you need to run configure with any options you might want (if any).</font>
<p><font color="#330000">The average case is this:</font>
327
328
<p><b><font color="#330000">cd nano-x.y.z/</font></b>
<br><b><font color="#330000">./configure</font></b>
Chris Allegretta's avatar
Chris Allegretta committed
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<br><b><font color="#330000">make</font></b>
<br><font color="#330000"><b>make install </b>(as root, of course)</font></blockquote>

<h2>
<a NAME="3.3"></a><font color="#330000">3.3. Why does everything go into
/usr/local?</font></h2>

<blockquote><font color="#330000">Well, that's what the <b>configure</b>
script defaults to.&nbsp; If you wish to change this, simply do this:</font>
<p><b><font color="#330000">./configure --prefix=/usr</font></b>
<p><font color="#330000">to put nano into /usr/bin when you run <b>make
install</b>.</font></blockquote>

<h2>
<a NAME="3.4"></a><font color="#330000">3.4. I get errors about 'bindtextdomain',
'gettext' and/or 'gettextdomain'.&nbsp; What can I do about it?</font></h2>

<blockquote><font color="#330000">Try doing a <b>./configure --with-included-gettext</b>
and see if that solves your problem.&nbsp; You make need to do a <b>make
clean ; make</b> to get it to work fully.</font></blockquote>

350
351
352
353
354
355
356
357
<h2>
<a NAME="3.5"></a><font color="#330000">3.5. Nano should automatically 
run strip on the binary when installing it!</font></h2>

<blockquote><font color="#330000">Actually, it does, but you have to use
<b>make install-strip</b>.  The default make install does not, and will
not, run strip automatically.</font></blockquote>

358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<h2>
<a NAME="3.6"></a><font color="#330000">
3.6. How can I make the executable smaller?  This is too
bloated!</font></h2>

<blockquote><font color="#330000">Actually, there are several parts of the
editor that can be disabled.  You can pass arguments to the
<b>configure</b> script that disable certain features.   Here's a brief
list:
<pre>
<b>--disable-tabcomp</b>       Disables tab completion code for a smaller binary
<b>--disable-justify</b>       Disable justify/unjustify function
<b>--disable-speller</b>       Disables spell checker function
<b>--disable-help</b>          Disables help function (^G)
<b>--disable-browser</b>       Disables mini file browser
373
374
<b>--disable-wrapping</b>      Disables all wrapping of text (and -w flag)
<b>--disable-mouse</b>         Disables mouse support (and -m flag)
375
</pre><br>
Chris Allegretta's avatar
Chris Allegretta committed
376
There's also the <b>--enable-tiny</b> option which disables everything
377
378
379
380
381
382
383
above, as well as some larger chunks of the program (like the marker code
that you use Control-^ to select with).  Also, if you know you aren't
going to be using other languages you can use <b>--disable-nls</b> to
disable internationalization and save a few K to a few dozen K depending
on if you have locale support on your system. And finally there's always
good old <b>strip</b> to strip all debugging code and code that exists in
libraries on your system.
384
385
386
387
388
389
<p>If, in the other hand, you can't live with bells and whistles, you could
try:
<pre>
<b>--enable-extra</b>          Enable extra functions, including easter eggs
<b>--enable-nanorc</b>         Enable use of .nanorc file
<b>--enable-color</b>          Enables color and syntax highlighting
Chris Allegretta's avatar
Chris Allegretta committed
390
391
392
393
394
395
396
<b>--enable-multibuffer</b>    Enables having multiple file buffers open
</font></blockquote>

<h2>
<a NAME="3.7"></a><font color="#330000">
3.7. Tell me more about this multibuffer stuff!</font></h2>

Chris Allegretta's avatar
Chris Allegretta committed
397
<blockquote><font color="#330000"> To use multiple file buffers, you must be using nano 1.1.1
Chris Allegretta's avatar
Chris Allegretta committed
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
or newer, and you must have configured nano with <b>--enable-multibuffer</b> or
<b>--enable-extra</b> (use nano -V to check).  Then when you want to enable inserting a file
into its own buffer instead of into the current file, just hit <b>Meta-F</b>, then insert the
file as normal with <b>^R</b>.  If you always want files to be loaded into their own buffers,
use the <b>--multibuffer</b> or <b>-F</b> flag when you invoke nano. <P>

You can move between the buffers you have open with the <b>Meta-&lt;</b> and <b>Meta-&gt;</b>
keys, or more easily with <b>Meta-,</b> and <b>Meta-.</b> (clear as mud, right? =-).
When you have more than one file buffer open, the ^X shortcut will say "Close", instead of the
normal "Exit" when only one buffer is open. 
</font></blockquote>

<h2>
<a NAME="3.8"></a><font color="#330000">
3.8. How do I make a .nanorc file that nano will read when I start it?</font></h2>

<blockquote><font color="#330000"> It's not hard at all!  But, your version of nano must have
Chris Allegretta's avatar
Chris Allegretta committed
415
beem compiled with <b>--enable-nanorc</b>, and again must be version 1.1.1 or newer (use nano
Chris Allegretta's avatar
Chris Allegretta committed
416
417
418
419
420
421
422
-V to check your version and compiled features).  Then simply copy the <b>nanorc.sample</b>
that came with the nano source or your nano package (most likely in /usr/doc/nano) to .nanorc
in your home directory. If you didn't get one, the syntax is simple.  Flags are turned on and
off by using the word <b>set</b> and the getopt_long flag for the feature, for example "set
pico" or "set nowrap". </font></blockquote> <hr WIDTH="100%">

<h1><a NAME="4"></a><font color="#330000">4. Running</font></h1>
Chris Allegretta's avatar
Chris Allegretta committed
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439

<h2>
<a NAME="4.1"></a><font color="#330000">4.1. Ack!&nbsp; My backspace/delete/enter/double
bucky/meta key doesn't seem to work!&nbsp; What can I do?</font></h2>

<blockquote><font color="#330000">Try setting your $TERM variable to 'vt100'.&nbsp;
Nano doesn't yet support every term entry under the sun.</font>
<p><font color="#330000">Bourne shell users (like bash): <b>export TERM=vt100</b></font>
<br><font color="#330000">C Shell users (tcsh and csh): <b>setenv TERM
vt100</b></font></blockquote>

<h2>
<a NAME="4.2"></a><font color="#330000">4.2. Nano crashes when I type &lt;insert
keystroke here>!</font></h2>

<blockquote><font color="#330000">If you aren't trying some bizarre keystroke
combination with some bizarre $TERM entry, chances are you have found a
440
441
bug.&nbsp;&nbsp; You are welcome to submit it to the
<a href="mailto:nano-devel@lists.sourceforge.net">nano-devel</a> list or
Chris Allegretta's avatar
Chris Allegretta committed
442
to <a href="mailto:nano@nano-editor.org">nano@nano-editor.org</a>.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
443
444
445
446
447
448

<h2>
<a NAME="4.3"></a><font color="#330000">4.3. Nano crashes when I resize
my window.&nbsp;&nbsp; How can I fix that?</font></h2>

<blockquote><font color="#330000">Older versions of nano had this problem,
Jordi Mallach's avatar
   
Jordi Mallach committed
449
450
please upgrade to a newer version (at least 0.9.9 would be great, 0.9.12
is recommended).</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
451
452

<h2>
453
454
<a NAME="4.4"></a><font color="#330000">4.4. Why does nano show ^\ in the
shortcut list instead of ^J?</font></h2>
Chris Allegretta's avatar
Chris Allegretta committed
455

456
<blockquote><font color="#330000">The help (^G) and justify (^J) function
Chris Allegretta's avatar
Chris Allegretta committed
457
458
were among the last to be written.&nbsp; To show the improvements that
nano had over Pico (goto line # and replace), ^_ and ^\ were put on the
459
460
461
462
shortcut list.&nbsp;&nbsp; Later, ^G came back in place of ^_ as it proved
to be very valuable for new UNIX users. If you use the <b>-p</b> option to
nano (or hit Meta-P) you will get the same shortcuts at the bottom as
Pico.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
463
464

<h2>
465
466
<a name="4.5"><font color="#330000">4.5. When I type in a search
string, the string I last searched for is already in front of my
467
cursor!  What happened?!</font></h2>
468

Chris Allegretta's avatar
Chris Allegretta committed
469
<blockquote><font color="#330000">In nano version 0.9.20, the default is
470
471
to have a completely consistent user interface across all user input
functions.  This means that regardless of whether you're being asked for
Chris Allegretta's avatar
Chris Allegretta committed
472
473
474
475
476
a filename to insert or write, or a string to search for, the
previous value is already inserted before the cursor.  If you prefer the
old behavior, use the pico emulation mode (-p or --pico) or just hit
Meta-P while in nano (see the ^G help text for more
details).</font></blockquote>
477
478

<h2>
479
<a NAME="4.6"></a>I get the message "NumLock glitch detected.  Keypad
480
will malfunction with NumLock off." What gives?</h2>
481
482
483
484
485
486
487
488
489
490
491
492
493

<blockquote>
Nano (actually almost all console editors do) has issues when cycling
the NumLock key in certain X terminals (rxvt, aterm, wterm, etc...).  When
you switch NumLock on to off, you put the terminal into an "application
mode" that changes what sequences are sent by the keypad.  These sequences
vary sufficiently from terminal to terminal that it is nearly impossible
to work around them from within nano.  
<br><br>
In a nutshell, if you want to be able to use the keypad with the arrow and
page up/down functionality, you have to exit nano and reset your terminal
(presumably with "reset" or "stty sane" or similar) and then run nano
again with NumLock off.  If you know an easier way to restore "normal
Chris Allegretta's avatar
Chris Allegretta committed
494
mode", please mail <A href="mailto:nano@nano-editor.org">nano@nano-editor.org</A>.
495
496
497
498
<br>&nbsp;</blockquote>

<h2>
<a NAME="4.7"></a>4.7. How do I make nano my default editor (in Pine,
499
mutt, etc)?</h2>
Chris Allegretta's avatar
Chris Allegretta committed
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535

<blockquote>You need to make nano your $EDITOR.&nbsp; If you want this
to be saved, you should put a line like this in your <b>.bashrc</b> if
you use bash:
<p><b>export EDITOR=/usr/local/bin/nano</b>
<p>or if you use tcsh put this in your <b>.cshrc</b> file:
<p><b>setenv EDITOR /usr/local/bin/nano</b>
<p>Change /usr/local/bin/nano to wherever nano is installed in your system.&nbsp;
Type which nano to find out. This will not take effect until the next time
you login.&nbsp; So log out and back in again.
<p>Then on top that if you use Pine you must go into setup (type <b>S</b>
at the main menu), then configure (type <b>C</b>).&nbsp; Hit enter on the
lines that say:
<p><b>[ ]&nbsp; enable-alternate-editor-cmd</b>
<br><b>[ ]&nbsp; enable-alternate-editor-implicitly</b>
<p>Then exit (<b>E</b>) and select Yes (<b>Y</b>).
<p>Mutt users should see an effect immediately the next time you log in,
no further configuration is needed.&nbsp; However, if you want to let people
know you use nano to compose your email messages, you can put a line like
this in your <b>.muttrc</b>:
<p><b>my_hdr X-Composer: nano x.y.z</b>
<p>Again, replace x.y.z with the version of nano you use.
<br>&nbsp;</blockquote>

<hr WIDTH="100%">
<h1>
<a NAME="5"></a><font color="#330000">5. Internationalization</font></h1>

<h2>
<a NAME="5.1"></a><font color="#330000">5.1. There's no translation for
my language!</font></h2>

<blockquote><font color="#330000">So, uh, get someone who speaks your native
language to write one =-).&nbsp; Just grab the <b>nano.pot</b> file from
the latest and greatest nano distribution (it's in the <b>po/</b> directory)
and translate each line into your native language on the <b>msgstr</b>
536
line.&nbsp; Then send it to the <a href="mailto:nano-devel@lists.sourceforge.net">nano-devel</a> list or <a href="mailto:nano@nano-editor.org">nano@nano-editor.org</a>.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555

<h2>
<a NAME="5.2"></a><font color="#330000">5.2. I don't like the translation
for &lt;x> in my language.&nbsp;&nbsp; How can I fix it?</font></h2>

<blockquote><font color="#330000">The best way would probably be to e-mail
the person listed in the <b>&lt;your_language>.po</b> file with your suggested
corrections and they can in turn forward it to the nano email address,
or the devel list.</font></blockquote>

<hr WIDTH="100%">
<h1>
<a NAME="6"></a><font color="#330000">6. Advocacy and Licensing</font></h1>

<h2>
<a NAME="6.1"></a><font color="#330000">6.1. Why should I use nano instead
of Pico?</font></h2>

<blockquote><font color="#330000">There are many reasons to use nano instead
556
of Pico, a more complete list can be found at the <a href="http://www.nano-editor.org">nano
Chris Allegretta's avatar
Chris Allegretta committed
557
558
559
560
561
562
homepage</a>.</font></blockquote>

<h2>
<a NAME="6.2"></a><font color="#330000">6.2. Why should I use Pico instead
of nano?</font></h2>

Chris Allegretta's avatar
Chris Allegretta committed
563
<blockquote>Again, check out the <a href="http://www.nano-editor.org">nano
Chris Allegretta's avatar
Chris Allegretta committed
564
565
566
567
568
homepage</a> for a good summary of reasons.&nbsp; It really is a matter
of personal preference as to which editor you should use.&nbsp; If you're
the type of person who likes using the original version of a program, then
Pico is the editor for you.&nbsp;&nbsp; If you're looking for a few more
features and a 'better' license as far as adding your own changes (sacrificing
569
mailer integration with Pine), nano is the way to go.
570
</blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
571
572
573
574
575

<h2>
<a NAME="6.3"></a><font color="#330000">6.3. What is so bad about the PINE
license?</font></h2>

576
577
578
579
580
581
582
583
<blockquote><font color="#330000">The U of W license for Pine and
Pico is not considered truly Free Software according to both the Free
Software Foundation and the  the <a
href="http://www.debian.org/social_contract#guidelines">Debian
Free Software Guidelines</a>.&nbsp; The main problem regards the
limitations on distributing derived works: according to UW, you can
distribute their software, and you can modfify it, but you can not do
both, i.e. distribute modified binaries.</blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
584
585
586
587
588

<h2>
<a NAME="6.4"></a><font color="#330000">6.4. Okay, well what mail program
should I use then?</font></h2>

589
<blockquote><font color="#330000"> If you are looking to use a Free
590
Software program similar to PINE and emacs is not your thing, you should
591
592
593
594
595
definitely take a look at <a href="http://www.mutt.org">mutt</a>.&nbsp; It
is a full-screen, console based mail program that actually has a lot more
flexibility than Pine, but has a keymap included in the distribution that
allows you to use the same keystrokes as Pine would to send and receive
mail.&nbsp; It's also licensed under the GPL.</font></blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
596
597
598
599
600
601

<h2>
<a NAME="6.5"></a><font color="#330000">6.5. Why doesn't UW simply change
their license?</font></h2>

<blockquote><font color="#330000">You're really not asking the right person
Chris Allegretta's avatar
Chris Allegretta committed
602
here.&nbsp; I (Chris) waited a long time to see if UW would change their
Chris Allegretta's avatar
Chris Allegretta committed
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
license because of the amount of high quality software being released and
developed under the GPL without being taken advantage of by malicious corporate
entities or other baddies, but no such luck so far.</font></blockquote>

<h2>
<a NAME="6.6"></a><font color="#330000">6.6. What if tomorrow UW changes
the license to be truly Free Software?</font></h2>

<blockquote><font color="#330000">Honestly nothing would make me happier
than to see that happen.&nbsp; Nano would continue to be developed independently
until such time as Pico had all the features nano did or the projects merged.&nbsp;
That just does not seem very likely given that there has been no sign of
any changes in the past few years in a positive direction.</font></blockquote>

<hr WIDTH="100%">
<h1>
<a NAME="7"></a><font color="#330000">7. Miscellaneous</font></h1>

<h2>
<a NAME="7.1"></a><font color="#330000">7.1. Nano related mailing lists.</font></h2>

<blockquote><font color="#330000">There are two mailing lists for nano
hosted at <a href="http://www.sourceforge.net">SourceForge</a>, nano-announce
and nano-devel.&nbsp; Nano-announce is a very low traffic list where new
Jordi Mallach's avatar
   
Jordi Mallach committed
627
versions of nano are announced (surprise!)&nbsp; Nano-devel is a normally
628
low, sometimes high traffic list for discussing the present and future
Chris Allegretta's avatar
Chris Allegretta committed
629
630
631
632
633
634
635
636
637
638
development of nano.&nbsp; Here are links to where you can sign up for
a given list:</font><font color="#330000"></font>
<p><font color="#330000">nano-announce - <a href="http://lists.sourceforge.net/mailman/listinfo/nano-announce">http://lists.sourceforge.net/mailman/listinfo/nano-announce</a></font>
<br><font color="#330000">nano-devel - <a href="http://lists.sourceforge.net/mailman/listinfo/nano-devel">http://lists.sourceforge.net/mailman/listinfo/nano-devel</a></font></blockquote>

<h2>
<a NAME="7.2"></a><font color="#330000">7.2. I want to send the development
team a big load of cash (or just a thank you).</font></h2>

<blockquote><font color="#330000">That's fine.&nbsp; Send it <a href="mailto:nano-devel@lists.sourceforge.net">our
Chris Allegretta's avatar
Chris Allegretta committed
639
640
way</a>!&nbsp; Better yet, fix a <a href="http://www.nano-editor.org/dist/BUGS">bug</a>
in the program or implement a <a href="http://www.nano-editor.org/dist/TODO">cool
Chris Allegretta's avatar
Chris Allegretta committed
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
feature</a> and send us that instead (though cash is fine too).</font></blockquote>

<h2>
<a NAME="7.3"></a><font color="#330000">7.3. How do I submit a patch?</font></h2>

<blockquote><font color="#330000">See Section <a href="#7.2">7.2</a>.</font></blockquote>

<h2>
<a NAME="7.4"></a><font color="#330000">7.4. How do I join the development
team?</font></h2>

<blockquote><font color="#330000">The easiest way is to consistently send
in good patches that add some needed functionality, fix a bug or two and/or
make the program more optimized/efficient.&nbsp; Then ask nicely and you
will probably be added to the SourceForge development list and be given
CVS write after awhile.&nbsp; There is a lot of responsibility that goes
along with being a team member, so don't think it's just something to add
to your resume.</font></blockquote>

<h2>
<a NAME="7.5"></a><font color="#330000">7.5. Can I have CVS write access?</font></h2>

<blockquote><font color="#330000">Re-read Section </font><a href="#7.4">7.4</a><font color="#330000">
and you should know the answer.</font></blockquote>

<h1>
<a NAME="8"></a>8. ChangeLog</h1>

<blockquote>06/31/2000 - Initial framework.</blockquote>
Chris Allegretta's avatar
Chris Allegretta committed
670
671
<P>
$Id$
Chris Allegretta's avatar
Chris Allegretta committed
672
673
</body>
</html>