Here's a first cut at an "integrate nano" fast track. Comments
welcome. (The case materials will include nano(1) and rnano(1).)
(I suppose the main question is whether to go with the default
feature set, or to enable/disable specific nano features.)
- Stephen
----
PSARC/2007/000
Include GNU nano 2.0.3
Stephen Hahn (sch at sun.com)
ident "$Hg: d-gnu-nano-fast-track.txt 7d2d5b5ce9a4 2007/05/07 11:17:25 -0700
$ SMI"
1. Summary
This case adds the GNU/FSF visual editor, nano(1), under the
integration guidelines for /usr/gnu [1]. Patch binding is sought
for this case.
2. Discussion
The GNU visual editor, nano(1), offers a simple editor suitable for
new users to a Unix terminal environment. (For instance, nano
displays the available command menu on the bottom two lines of the
terminal.) Both the regular and restricted forms of the editor will be
included; like restricted shells, rnano(1) allows a limited set of
operations: access only to files provided as arguments, no job
suspension, and so forth. The initial integration will provide the
default feature set.
A new package, SUNWgnu-nano, will be introduced to deliver the
component.
The initial version provided will be nano-2.0.3.
3. Interfaces
/usr/bin/nano
/usr/bin/rnano
Location Committed
Invocation Uncommitted
Human-readable output Not an Interface
/usr/share/info/nano.info
Location Uncommitted
/usr/share/man/man1/nano.1
/usr/share/man/man1/rnano.1
Location Uncommitted
4. References
[1] S. Hahn, B. Smaalders, and R. Orth, PSARC/2007/047: /usr/gnu, 2007.
Appendix A. Utility synopsis for GNU nano
Usage: nano [OPTIONS] [[+LINE,COLUMN] FILE]...
Option GNU long option Meaning
-h, -? --help Show this message
+LINE,COLUMN Start at line LINE, column COLUMN
-A --smarthome Enable smart home key
-B --backup Save backups of existing files
-C <dir> --backupdir=<dir> Directory for saving unique backup files
-D --boldtext Use bold instead of reverse video text
-E --tabstospaces Convert typed tabs to spaces
-K --rebindkeypad Fix numeric keypad key confusion problem
-L --nonewlines Don't add newlines to the ends of files
-N --noconvert Don't convert files from DOS/Mac format
-O --morespace Use one more line for editing
-Q <str> --quotestr=<str> Quoting string
-R --restricted Restricted mode
-S --smooth Smooth scrolling
-T <#cols> --tabsize=<#cols> Set width of a tab to #cols columns
-U --quickblank Do quick statusbar blanking
-V --version Print version information and exit
-W --wordbounds Detect word boundaries more accurately
-c --const Constantly show cursor position
-d --rebinddelete Fix Backspace/Delete confusion problem
-i --autoindent Automatically indent new lines
-k --cut Cut from cursor to end of line
-l --nofollow Don't follow symbolic links, overwrite
-o <dir> --operatingdir=<dir> Set operating directory
-p --preserve Preserve XON (^Q) and XOFF (^S) keys
-r <#cols> --fill=<#cols> Set wrapping point at column #cols
-s <prog> --speller=<prog> Enable alternate speller
-t --tempfile Auto save on exit, don't prompt
-v --view View mode (read-only)
-w --nowrap Don't wrap long lines
-x --nohelp Don't show the two help lines
-z --suspend Enable suspension
-a, -b, -e,
-f, -g, -j (ignored, for Pico compatibility)
--
sch at sun.com http://blogs.sun.com/sch/