| 399 | |
| 400 | #ifdef FINSH_USING_HISTORY |
| 401 | static rt_bool_t shell_handle_history(struct finsh_shell *shell) |
| 402 | { |
| 403 | #if defined(_WIN32) |
| 404 | int i; |
| 405 | rt_kprintf("\r"); |
| 406 | |
| 407 | for (i = 0; i <= 60; i++) |
| 408 | putchar(' '); |
| 409 | rt_kprintf("\r"); |
| 410 | |
| 411 | #else |
| 412 | rt_kprintf("\033[2K\r"); |
| 413 | #endif |
| 414 | rt_kprintf("%s%s", FINSH_PROMPT, shell->line); |
| 415 | return RT_FALSE; |
| 416 | } |
| 417 | |
| 418 | static void shell_push_history(struct finsh_shell *shell) |
| 419 | { |
no test coverage detected