2000-06-06 05:53:49 +00:00
|
|
|
|
2019-01-22 20:20:46 +00:00
|
|
|
GNU nano -- a simple editor, inspired by Pico
|
2001-04-07 17:50:03 +00:00
|
|
|
|
2021-07-18 15:02:10 +00:00
|
|
|
Purpose
|
2000-12-27 15:46:22 +00:00
|
|
|
|
2021-07-18 15:02:10 +00:00
|
|
|
Nano is a small and simple text editor for use on the terminal.
|
|
|
|
It copied the interface and key bindings of the Pico editor but
|
|
|
|
added several missing features: undo/redo, syntax highlighting,
|
|
|
|
line numbers, softwrapping, multiple buffers, selecting text by
|
|
|
|
holding Shift, search-and-replace with regular expressions, and
|
|
|
|
several other conveniences.
|
|
|
|
|
2021-07-21 08:15:07 +00:00
|
|
|
Appearance
|
|
|
|
|
|
|
|
In rough ASCII graphics, this is what nano's screen looks like:
|
|
|
|
|
|
|
|
____________________________________________________________________
|
|
|
|
| GNU nano 5.8 filename Modified |
|
|
|
|
--------------------------------------------------------------------
|
|
|
|
| This is the text window, displaying the contents of a 'buffer', |
|
|
|
|
| the contents of the file you are editing. |
|
|
|
|
| |
|
|
|
|
| The top row of the screen is the 'title bar'; it shows nano's |
|
|
|
|
| version, the name of the file, and whether you modified it. |
|
2021-07-31 18:48:10 +00:00
|
|
|
| The two bottom rows display the most important shortcuts; in |
|
2021-07-21 08:15:07 +00:00
|
|
|
| those lines ^ means Ctrl. The third row from the bottom shows |
|
|
|
|
| some feedback message, or gets replaced with a prompt bar when |
|
|
|
|
| you tell nano to do something that requires extra input. |
|
|
|
|
| |
|
|
|
|
--------------------------------------------------------------------
|
|
|
|
| [ Some status message ] |
|
|
|
|
|^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute |
|
|
|
|
|^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify |
|
|
|
|
--------------------------------------------------------------------
|
|
|
|
|
2021-07-18 15:02:10 +00:00
|
|
|
Origin
|
|
|
|
|
|
|
|
The nano project was started in 1999 because of a few "problems"
|
|
|
|
with the wonderfully easy-to-use and friendly Pico text editor.
|
2000-12-27 15:46:22 +00:00
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
First and foremost was its license: the Pine suite does not use
|
2019-01-23 18:13:23 +00:00
|
|
|
the GPL, and (before using the Apache License) it had unclear
|
|
|
|
restrictions on redistribution. Because of this, Pine and Pico
|
|
|
|
were not included in many GNU/Linux distributions. Furthermore,
|
|
|
|
some features (like go-to-line-number or search-and-replace) were
|
|
|
|
unavailable for a long time or require a command-line flag. Yuck.
|
2000-06-06 05:53:49 +00:00
|
|
|
|
2019-01-22 20:20:46 +00:00
|
|
|
Nano aimed to solve these problems by: 1) being truly free software
|
|
|
|
by using the GPL, 2) emulating the functionality of Pico as closely
|
2019-04-28 08:34:32 +00:00
|
|
|
as is reasonable, and 3) including extra functionality by default.
|
2019-01-22 20:20:46 +00:00
|
|
|
|
2019-04-28 08:34:32 +00:00
|
|
|
Nowadays, nano wants to be a generally useful editor with sensible
|
|
|
|
defaults (linewise scrolling, no automatic line breaking).
|
2001-02-14 14:28:27 +00:00
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
The nano editor is an official GNU package. For more information on
|
2018-11-11 11:28:40 +00:00
|
|
|
GNU and the Free Software Foundation, please see https://www.gnu.org/.
|
2004-01-10 06:12:04 +00:00
|
|
|
|
2021-07-21 08:01:35 +00:00
|
|
|
License
|
|
|
|
|
|
|
|
Nano's code and documentation are covered by the GPL version 3 or
|
|
|
|
(at your option) any later version, except for two functions that
|
|
|
|
were copied from busybox which are under a BSD license. Nano's
|
|
|
|
documentation is additionally covered by the GNU Free Documentation
|
|
|
|
License version 1.2 or (at your option) any later version. See the
|
|
|
|
files COPYING and COPYING.DOC for the full text of these licenses.
|
|
|
|
|
|
|
|
When in any file of this package a copyright notice mentions a
|
|
|
|
year range (such as 1999-2011), it is a shorthand for a list of
|
|
|
|
all the years in that interval.
|
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
How to compile and install nano
|
|
|
|
|
2020-10-11 14:29:40 +00:00
|
|
|
Download the latest nano source tarball, and then:
|
2015-02-21 09:45:53 +00:00
|
|
|
|
2019-10-27 18:15:04 +00:00
|
|
|
tar -xvf nano-x.y.tar.gz
|
|
|
|
cd nano-x.y
|
2018-01-09 15:47:51 +00:00
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
2004-01-10 06:12:04 +00:00
|
|
|
|
2020-10-11 14:29:40 +00:00
|
|
|
You will need the header files of ncurses installed for ./configure
|
|
|
|
to succeed -- get them from libncurses-dev (Debian) or ncurses-devel
|
|
|
|
(Fedora) or a similarly named package. Use --prefix with ./configure
|
|
|
|
to override the default installation directory of /usr/local.
|
2015-02-21 09:45:53 +00:00
|
|
|
|
2020-10-11 14:29:40 +00:00
|
|
|
After installation you may want to copy the doc/sample.nanorc file
|
|
|
|
to your home directory, rename it to ".nanorc", and then edit it
|
2018-01-09 15:47:51 +00:00
|
|
|
according to your taste.
|
2004-01-10 06:12:04 +00:00
|
|
|
|
2000-06-06 05:53:49 +00:00
|
|
|
Web Page
|
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
https://nano-editor.org/
|
2004-01-10 06:12:04 +00:00
|
|
|
|
2016-11-13 19:35:19 +00:00
|
|
|
Mailing Lists
|
2000-06-06 05:53:49 +00:00
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
There are three nano-related mailing-lists.
|
2004-01-10 06:02:05 +00:00
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
+ info-nano@gnu.org is a very low traffic list used to announce
|
|
|
|
new nano versions or other important info about the project.
|
2020-10-11 14:29:40 +00:00
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
+ help-nano@gnu.org is for those seeking to get help without
|
|
|
|
wanting to hear about the technical details of its development.
|
2020-10-11 14:29:40 +00:00
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
+ nano-devel@gnu.org is the list used by the people that make nano
|
|
|
|
and a general development discussion list, with moderate traffic.
|
2016-11-13 19:35:19 +00:00
|
|
|
|
2018-01-09 15:47:51 +00:00
|
|
|
To subscribe, send email to <name>-request@gnu.org with a subject
|
|
|
|
of "subscribe", where <name> is the list you want to subscribe to.
|
2016-11-13 19:35:19 +00:00
|
|
|
|
2020-12-21 10:17:24 +00:00
|
|
|
The archives of the development and help mailing lists are here:
|
|
|
|
|
|
|
|
https://lists.gnu.org/archive/html/nano-devel/
|
|
|
|
https://lists.gnu.org/archive/html/help-nano/
|
|
|
|
|
2016-11-13 19:35:19 +00:00
|
|
|
Bug Reports
|
|
|
|
|
2020-12-25 15:40:51 +00:00
|
|
|
If you find a bug, please file a detailed description of the problem
|
|
|
|
on nano's bug tracker: https://savannah.gnu.org/bugs/?group=nano.
|