diff --git a/components/finsh/Kconfig b/components/finsh/Kconfig index f36c73e1fb1bebdb25151e993fec7c9f996b6ace..610db05eb686b0e20e9b4f5742df5068714f3329 100644 --- a/components/finsh/Kconfig +++ b/components/finsh/Kconfig @@ -26,6 +26,10 @@ 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_THREAD_PRIORITY int "The priority level value of finsh thread" default 20 diff --git a/components/finsh/shell.c b/components/finsh/shell.c index fc13a92b13e47b1dd9f7986c303252f7760e2353..ea68a57ffa2a9d6d0a43ba0c2eb19452ae9562fd 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -414,7 +414,11 @@ void finsh_thread_entry(void *parameter) char ch; /* normal is echo mode */ +#ifndef FINSH_ECHO_DISABLE_DEFAULT shell->echo_mode = 1; +#else + shell->echo_mode = 0; +#endif #ifndef FINSH_USING_MSH_ONLY finsh_init(&shell->parser);