diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index ce3a76bdd00..01c2bd37505 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -968,12 +968,12 @@ int terminal_reset_ansi_seq(int fd) { return log_debug_errno(r, "Failed to set terminal to non-blocking mode: %m"); k = loop_write_full(fd, - "\033[!p" /* soft terminal reset */ - "\033]104\007" /* reset colors via OSC104 */ - ANSI_NORMAL /* reset colors */ - "\033[?7h" /* enable line-wrapping */ - "\033[1G" /* place cursor at beginning of current line */ - "\033[0J", /* erase till end of screen */ + "\033[!p" /* soft terminal reset */ + ANSI_OSC "104" ANSI_ST /* reset color palette via OSC 104 */ + ANSI_NORMAL /* reset colors */ + "\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)