2022-03-25 23:07:18 +08:00
|
|
|
menuconfig RT_USING_MSH
|
|
|
|
bool "MSH: command shell"
|
2023-11-27 00:15:36 +08:00
|
|
|
default n if RT_USING_NANO
|
2017-01-31 11:54:12 +08:00
|
|
|
default y
|
|
|
|
|
2021-08-23 17:30:05 +08:00
|
|
|
if RT_USING_MSH
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2022-03-25 23:07:18 +08:00
|
|
|
config RT_USING_FINSH
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
2021-09-06 02:03:33 +08:00
|
|
|
config FINSH_USING_MSH
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_THREAD_NAME
|
|
|
|
string "The msh thread name"
|
|
|
|
default "tshell"
|
2017-10-10 14:27:34 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_THREAD_PRIORITY
|
|
|
|
int "The priority level value of thread"
|
|
|
|
default 20
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_THREAD_STACK_SIZE
|
|
|
|
int "The stack size for thread"
|
|
|
|
default 4096
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_USING_HISTORY
|
|
|
|
bool "Enable command history feature"
|
|
|
|
default y
|
2021-08-26 07:10:01 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
if FINSH_USING_HISTORY
|
|
|
|
config FINSH_HISTORY_LINES
|
|
|
|
int "The command history line number"
|
|
|
|
default 5
|
|
|
|
endif
|
2017-10-13 11:50:18 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_USING_SYMTAB
|
|
|
|
bool "Using symbol table for commands"
|
|
|
|
default y
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_CMD_SIZE
|
|
|
|
int "The command line size for shell"
|
|
|
|
default 80
|
2017-10-10 14:27:34 +08:00
|
|
|
|
2021-08-29 04:48:08 +08:00
|
|
|
config MSH_USING_BUILT_IN_COMMANDS
|
2021-08-26 22:08:12 +08:00
|
|
|
bool "Enable built-in commands, such as list_thread"
|
|
|
|
default y
|
2017-10-10 14:27:34 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_USING_DESCRIPTION
|
|
|
|
bool "Keeping description in symbol table"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config FINSH_ECHO_DISABLE_DEFAULT
|
|
|
|
bool "Disable the echo mode in default"
|
|
|
|
default n
|
|
|
|
|
|
|
|
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
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2021-08-26 22:08:12 +08:00
|
|
|
config FINSH_ARG_MAX
|
|
|
|
int "The number of arguments for a shell command"
|
|
|
|
default 10
|
2017-01-31 11:54:12 +08:00
|
|
|
|
2023-09-27 12:34:05 +08:00
|
|
|
config FINSH_USING_OPTION_COMPLETION
|
|
|
|
bool "command option completion enable"
|
|
|
|
default y
|
|
|
|
|
2017-01-31 11:54:12 +08:00
|
|
|
endif
|