History

common/msg: fix warning: use of non-standard escape character '\e'

nanahi committed 2 years ago

Commit 98ab8d81 parent 302ccf11 file · +1 −1Browse files

Unified · Split

common/msg.c+1−1
@@ -283,7 +283,7 @@ void mp_msg_set_term_title(struct mp_log *log, const char *title) · 282 unmodified lines
283283 if (log->root && title) {
284284 // Lock because printf to terminal is not necessarily atomic.
285285 mp_mutex_lock(&log->root->lock);
286− fprintf(stderr, "\e]0;%s\007", title);
286+ fprintf(stderr, "\033]0;%s\007", title);
287287 mp_mutex_unlock(&log->root->lock);
288288 }
289289 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t