Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
-=* GNU nano for Windows *=- Overview Here is the source code for a ported, standalone version of GNU nano, a famous, easy-to-use and handy text editor on Linux. The script 'build_nano-win.sh' can be run in MSYS2 with mingw-w64 toolchains installed. That script does static linking such that the executable, nano.exe, relies on no third party .DLL files, including Microsoft Visual C++ Redistributable packages. Enhancements + .nanorc is loaded from '%USERPROFILE%\.nanorc' with normal privilege and from "%ALLUSERSPROFILE%\.nanorc" with elevated priviledge. + Systemwide nanorc is loaded from "%ALLUSERSPROFILE%\nanorc". + Added C++11 keywords and identifiers with special meaning (that is, override and final) in 'doc/syntax/c.nanorc'. + Vim-style locking files have been enabled. Features Removed + Spell checker (This requires the infamous `fork()` syscall. ) + Stop and continue (This requires the `SIGSTOP` signal. ) + UTF-8 support (This requires narrow multibyte strings to use the UTF-8 encoding. Despite the viability of linking against ncursesw, the CRT part has never worked. ) + Native language support (This requires hard-coding the path to the directory containing locale files in the executable. ) Workarounds + Either `Alt` key can be used as a `Meta` key. + UNIX style end-of-line handling by default. + Standard-conforming `sprintf()` function from mingw-w64. =============================================================================== GNU nano -- a simple editor, inspired by Pico Overview The nano project was started because of a few "problems" with the wonderfully easy-to-use and friendly Pico text editor. First and foremost was its license: the Pine suite does not use 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. Nano aimed to solve these problems by: 1) being truly free software by using the GPL, 2) emulating the functionality of Pico as closely as is reasonable, and 3) including extra functionality by default. Nowadays, nano wants to be a generally useful editor with sensible defaults (linewise scrolling, no automatic line breaking). The nano editor is an official GNU package. For more information on GNU and the Free Software Foundation, please see https://www.gnu.org/. How to compile and install nano Download the latest nano source tarball, then: tar -xvf nano-x.y.tar.gz cd nano-x.y ./configure make make install It's that simple. Use --prefix with configure to override the default installation directory of /usr/local. If you haven't configured with the --disable-nanorc option, after installation you may want to copy the doc/sample.nanorc file to your home directory, rename it to ".nanorc", and then edit it according to your taste. Web Page https://nano-editor.org/ Mailing Lists There are three nano-related mailing-lists. + email@example.com is a very low traffic list used to announce new nano versions or other important info about the project. + firstname.lastname@example.org is for those seeking to get help without wanting to hear about the technical details of its development. + email@example.com is the list used by the people that make nano and a general development discussion list, with moderate traffic. To subscribe, send email to <name>-firstname.lastname@example.org with a subject of "subscribe", where <name> is the list you want to subscribe to. Bug Reports To report a bug, please file a description of the problem on nano's bug tracker (https://savannah.gnu.org/bugs/?group=nano -- hover on "Bugs", then click "Submit new"). The issue may have already been reported, so please look first. Current Status Since version 2.5.0, GNU nano has abandoned the distinction between a stable and a development branch: it is now on a "rolling" release -- fixing bugs and adding new features go hand in hand. Copyright Years 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.