Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 39 additions & 28 deletions components/finsh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,28 @@ if RT_USING_MSH
config FINSH_USING_HISTORY
bool "Enable command history feature"
default y

if FINSH_USING_HISTORY
config FINSH_HISTORY_LINES
int "The command history line number"
default 5
endif
if FINSH_USING_HISTORY
config FINSH_HISTORY_LINES
int "The command history line number"
default 10
endif

config FINSH_USING_SNAPSHOT
bool "Enable command Ctrl+Z/Ctrl+Y snapshot feature"
default n
if FINSH_USING_SNAPSHOT
config FINSH_SNAPSHOT_DEPTH
int "The command snapshot depth"
default 10
endif

config FINSH_USING_WORD_OPERATION
bool "Enable word-based cursor operations"
bool "Enable Ctrl+W/Backspace/Ctrl+Left/Right word-based cursor operations"
default n
help
Enable Ctrl+Backspace to delete words and Ctrl+Arrow to move cursor by word

config FINSH_USING_FUNC_EXT
bool "Enable function extension home end ins del"

config FINSH_USING_EXTEND_FEATURE
bool "Enable insert/delete/home/end extend feature"
default n
help
Enable function extension home end ins del.

config FINSH_USING_SYMTAB
bool "Using symbol table for commands"
Expand All @@ -67,24 +71,31 @@ if RT_USING_MSH
config FINSH_ECHO_DISABLE_DEFAULT
bool "Disable the echo mode in default"
default n

config FINSH_PROMPT_ENABLE_DEFAULT
bool "Enable the prompt mode in default"
default y

config FINSH_PROMPT_WORD_DEFAULT
string "The default prompt word"
default "msh "

config FINSH_USING_AUTH
bool "shell support authentication"
default n

if FINSH_USING_AUTH
config FINSH_DEFAULT_PASSWORD
string "The default password for shell authentication"
default "rtthread"

config FINSH_PASSWORD_MIN
int "The password min length"
default 6

config FINSH_PASSWORD_MAX
int "The password max length"
default RT_NAME_MAX
endif
if FINSH_USING_AUTH
config FINSH_DEFAULT_PASSWORD
string "The default password for shell authentication"
default "rtthread"

config FINSH_PASSWORD_MIN
int "The password min length"
default 6

config FINSH_PASSWORD_MAX
int "The password max length"
default RT_NAME_MAX
endif

config FINSH_ARG_MAX
int "The number of arguments for a shell command"
Expand Down
Loading
Loading