diff options
| author | bernard <[email protected]> | 2014-07-10 13:35:28 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-07-10 13:35:28 +0800 |
| commit | f44f6caadb13cfd88d0f45576214dc474dcedaf7 (patch) | |
| tree | 2468fbf4ac868cabfa5b22c8597d828d4d076b72 /components | |
| parent | 1e7b0894949be4fe86c31ddf3c1bd754908459aa (diff) | |
[Finsh] Fix command line size issue in finsh.
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/shell.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 393d68713c..ae099e7e7c 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -530,6 +530,12 @@ void finsh_thread_entry(void* parameter) ch = 0; shell->line_position ++; shell->line_curpos++; + if (shell->line_position >= 80) + { + /* clear command line */ + shell->line_position = 0; + shell->line_curpos = 0; + } } /* end of device read */ } } |
