From c9b74c175ad4502245cace41464aba69f8a1eaec Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 2 Feb 2014 10:25:53 -0600 Subject: Add an EMACS-like command line editor that can be used wit NSH --- apps/nshlib/Kconfig | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'apps/nshlib/Kconfig') diff --git a/apps/nshlib/Kconfig b/apps/nshlib/Kconfig index 7fb6a52b3..8a9d1e900 100644 --- a/apps/nshlib/Kconfig +++ b/apps/nshlib/Kconfig @@ -6,13 +6,37 @@ config NSH_LIBRARY bool "NSH Library" default n - select SYSTEM_READLINE ---help--- - Build the NSH support library. This is used, for example, by examples/nsh - in order to implement the full NuttShell (NSH). + Build the NSH support library. This is used, for example, by + examples/nsh in order to implement the full NuttShell (NSH). if NSH_LIBRARY +choice + prompt "Command Line Editor" + default NSH_READLINE + +config NSH_READLINE + bool "Minimal readline()" + select SYSTEM_READLINE + ---help--- + Selects the minimal implementation of readline(). This minimal + implementation provides on backspace for command line editing. + +config NSH_CLE + bool "Command Line Editor" + select SYSTEM_CLE + ---help--- + 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. + +endchoice + config NSH_BUILTIN_APPS bool "Enable built-in applications" default n -- cgit v1.2.3