The <code>apps/nshlib</code> sub-directory contains the NuttShell (NSH)
library.
This library can easily to linked to produce a NSH application (See as an example <code>apps/nshlib</code>).
NSH is a simple shell application for NuttX.
This library can easily to linked to produce a NSH application (See as an example <code>apps/examples/nsh</code>).
The NSH Library provides a simple shell application for NuttX.
</p>
<tablewidth ="100%">
...
...
@@ -474,17 +475,104 @@
</table>
<p>
Using settings in the configuration file, NSH may be configured to
use either the serial stdin/out or a telnet connection as the console
or BOTH. When NSH is started, you will see the following welcome on
either console:
<aname="nshconsoles"><b>NSH Consoles</b></a>.
Using settings in the configuration file, NSH may be configured to use
(1) the serial stdin/out,
(2) a USB serial device (such as CDC/ACM), or
(3) a telnet connection as the console.
Or, perhaps even all at once since or BOTH.
An indefinite number of telnet sessions are supported.
</p>
<p>
<aname="nshprompt"><b>Start-Up prompt</b></a>.
When NSH is started, you will see the a welcome message such the following on the selected console:
<ul><pre>
NuttShell (NSH)
nsh>
</pre></ul>
<code>nsh></code> is the NSH prompt and indicates that you may enter a command
from the console.
The greating may also include NuttX versioning information if you are using a versioned copy of NuttX.
<code>nsh></code> is the NSH prompt and indicates that you may enter a command from the console.
</p>
<p>
<aname="cle"><b>Extended Command Line Editing</b></a>.
By default, NuttX uses a simple command line editor that allows command entry after the <code>nsh></code> and supports only the <i>backspace</i> key for editing.
However, a more complete command line editor can be selected by setting <code>CONFIG_NSH_CLE=y</code> in the NuttX configuration file.
When that option is selected, the following EMACS-like line editing commands are supported: