diff --git a/common/msg.c b/common/msg.c index 08b41ead48..1b9a6ba982 100644 --- a/common/msg.c +++ b/common/msg.c @@ -283,7 +283,7 @@ void mp_msg_set_term_title(struct mp_log *log, const char *title) if (log->root && title) { // Lock because printf to terminal is not necessarily atomic. mp_mutex_lock(&log->root->lock); - fprintf(stderr, "\e]0;%s\007", title); + fprintf(stderr, "\033]0;%s\007", title); mp_mutex_unlock(&log->root->lock); } }