@@ -29,24 +29,28 @@ if RT_USING_MSH
2929 config FINSH_USING_HISTORY
3030 bool "Enable command history feature"
3131 default y
32-
33- if FINSH_USING_HISTORY
34- config FINSH_HISTORY_LINES
35- int "The command history line number"
36- default 5
37- endif
32+ if FINSH_USING_HISTORY
33+ config FINSH_HISTORY_LINES
34+ int "The command history line number"
35+ default 10
36+ endif
37+
38+ config FINSH_USING_SNAPSHOT
39+ bool "Enable command Ctrl+Z/Ctrl+Y snapshot feature"
40+ default n
41+ if FINSH_USING_SNAPSHOT
42+ config FINSH_SNAPSHOT_DEPTH
43+ int "The command snapshot depth"
44+ default 10
45+ endif
3846
3947 config FINSH_USING_WORD_OPERATION
40- bool "Enable word-based cursor operations"
48+ bool "Enable Ctrl+W/Backspace/Ctrl+Left/Right word-based cursor operations"
4149 default n
42- help
43- Enable Ctrl+Backspace to delete words and Ctrl+Arrow to move cursor by word
44-
45- config FINSH_USING_FUNC_EXT
46- bool "Enable function extension home end ins del"
50+
51+ config FINSH_USING_EXTEND_FEATURE
52+ bool "Enable insert/delete/home/end extend feature"
4753 default n
48- help
49- Enable function extension home end ins del.
5054
5155 config FINSH_USING_SYMTAB
5256 bool "Using symbol table for commands"
@@ -67,24 +71,31 @@ if RT_USING_MSH
6771 config FINSH_ECHO_DISABLE_DEFAULT
6872 bool "Disable the echo mode in default"
6973 default n
74+
75+ config FINSH_PROMPT_ENABLE_DEFAULT
76+ bool "Enable the prompt mode in default"
77+ default y
78+
79+ config FINSH_PROMPT_WORD_DEFAULT
80+ string "The default prompt word"
81+ default "msh "
7082
7183 config FINSH_USING_AUTH
7284 bool "shell support authentication"
7385 default n
74-
75- if FINSH_USING_AUTH
76- config FINSH_DEFAULT_PASSWORD
77- string "The default password for shell authentication"
78- default "rtthread"
79-
80- config FINSH_PASSWORD_MIN
81- int "The password min length"
82- default 6
83-
84- config FINSH_PASSWORD_MAX
85- int "The password max length"
86- default RT_NAME_MAX
87- endif
86+ if FINSH_USING_AUTH
87+ config FINSH_DEFAULT_PASSWORD
88+ string "The default password for shell authentication"
89+ default "rtthread"
90+
91+ config FINSH_PASSWORD_MIN
92+ int "The password min length"
93+ default 6
94+
95+ config FINSH_PASSWORD_MAX
96+ int "The password max length"
97+ default RT_NAME_MAX
98+ endif
8899
89100 config FINSH_ARG_MAX
90101 int "The number of arguments for a shell command"
0 commit comments