diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index 5303910b4c..50ad4c89af 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -974,7 +974,9 @@ static int terminal_reset_ansi_seq(int fd) { k = loop_write_full(fd, "\033[!p" /* soft terminal reset */ "\033]104\007" /* reset colors */ - "\033[?7h", /* enable line-wrapping */ + "\033[?7h" /* enable line-wrapping */ + "\033[1G" /* place cursor at beginning of current line */ + "\033[0J", /* erase till end of screen */ SIZE_MAX, 100 * USEC_PER_MSEC); if (k < 0)