shell: tab feature optimization

Add options to Kconfig that deactivate the Tab button and
autocompletion feature.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
Jakub Rzeszutko 2020-11-18 14:24:57 +01:00 committed by Maureen Helm
commit de7e208d8d
2 changed files with 34 additions and 2 deletions

View file

@ -65,6 +65,22 @@ config SHELL_ARGC_MAX
help
Maximum number of arguments that can build a command.
config SHELL_TAB
bool "Enable the Tab button supporort in shell"
default y
help
Enable using the Tab button in the shell. The button
can be used for prompting commands, or for autocompletion.
This feature has high impact on flash usage.
config SHELL_TAB_AUTOCOMPLETION
bool "Enable commands autocompletion with the Tab button"
depends on SHELL_TAB
default y
help
Enable commands and subcommands autocompletion with the Tab
key. This function can be deactivated to save some flash.
config SHELL_WILDCARD
bool "Enable wildcard support in shell"
select FNMATCH