summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authoraozima <[email protected]>2018-07-02 19:46:37 +0800
committeraozima <[email protected]>2018-07-02 19:46:37 +0800
commitefada8768e688504a961c0f185ffbecd46266300 (patch)
treea30280b3b1c2c5d22a6bdedaeadb245d90f5cfa6 /components
parent4f1112f838fbd4b17e9d1e77cd36c72e32d0ae7f (diff)
[shell] set prompt mode is default enable.
Diffstat (limited to 'components')
-rw-r--r--components/finsh/shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index 0109a761bc..29034bb286 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -34,6 +34,7 @@
* 2011-02-23 Bernard fix variable section end issue of finsh shell
* initialization when use GNU GCC compiler.
* 2016-11-26 armink add password authentication
+ * 2018-07-02 aozima add custome prompt support.
*/
#include <rthw.h>
@@ -853,6 +854,7 @@ int finsh_system_init(void)
#endif /* RT_USING_HEAP */
rt_sem_init(&(shell->rx_sem), "shrx", 0, 0);
+ finsh_set_prompt_mode(1);
if (tid != NULL && result == RT_EOK)
rt_thread_startup(tid);