MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / shell_handle_history

Function shell_handle_history

components/finsh/shell.c:401–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399
400#ifdef FINSH_USING_HISTORY
401static 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
418static void shell_push_history(struct finsh_shell *shell)
419{

Callers 1

finsh_thread_entryFunction · 0.85

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected