diff --git a/nshlib/README.txt b/nshlib/README.txt index 8cd68baac..082d8dcc6 100644 --- a/nshlib/README.txt +++ b/nshlib/README.txt @@ -1039,6 +1039,19 @@ NSH-Specific Configuration Settings The behavior of NSH can be modified with the following settings in the configs//defconfig file: + * CONFIG_NSH_READLINE + Selects the minimal implementation of readline(). This minimal + implementation provides on backspace for command line editing. + + * CONFIG_NSH_CLE + Selects the more extensive, EMACS-like command line editor. + Select this option only if (1) you don't mind a modest increase + in the FLASH footprint, and (2) you work with a terminal that + support VT100 editing commands. + + Selecting this option will add probably 1.5-2KB to the FLASH + footprint. + * CONFIG_NSH_BUILTIN_APPS Support external registered, "builtin" applications that can be executed from the NSH command line (see apps/README.txt for diff --git a/system/cle/cle.c b/system/cle/cle.c index e0b15151e..02c5efbd6 100644 --- a/system/cle/cle.c +++ b/system/cle/cle.c @@ -142,7 +142,7 @@ enum cle_key_e { KEY_BEGINLINE = CTRL('A'), /* Move cursor to start of current line */ KEY_LEFT = CTRL('B'), /* Move left one character */ - KEY_DEL = CTRL('D'), /* Delete a single character at the cursor position*/ + KEY_DEL = CTRL('D'), /* Delete a single character at the cursor position */ KEY_ENDLINE = CTRL('E'), /* Move cursor to end of current line */ KEY_RIGHT = CTRL('F'), /* Move right one character */ KEY_DELLEFT = CTRL('H'), /* Delete character, left (backspace) */