aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 04361b509..37c106bd8 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -2510,6 +2510,9 @@ int FAST_FUNC read_line_input(line_input_t *st, const char *prompt, char *comman
2510 case CTRL('L'): 2510 case CTRL('L'):
2511 vi_case(CTRL('L')|VI_CMDMODE_BIT:) 2511 vi_case(CTRL('L')|VI_CMDMODE_BIT:)
2512 /* Control-l -- clear screen */ 2512 /* Control-l -- clear screen */
2513#if ENABLE_PLATFORM_MINGW32
2514 printf(ESC"[0A"); /* move to current cursor postion */
2515#endif
2513 printf(ESC"[H"); /* cursor to top,left */ 2516 printf(ESC"[H"); /* cursor to top,left */
2514 redraw(0, command_len - cursor); 2517 redraw(0, command_len - cursor);
2515 break; 2518 break;