mirror of
https://github.com/mpv-player/mpv
synced 2025-03-18 17:40:30 +00:00
msg: use defines for hide/restore cursor code
This commit is contained in:
parent
1172c4ead9
commit
f53e941ba0
@ -216,9 +216,9 @@ static void prepare_prefix(struct mp_log_root *root, bstr *out, int lev, int ter
|
||||
|
||||
// Set cursor state
|
||||
if (new_lines && !root->status_lines) {
|
||||
bstr_xappend(root, out, bstr0("\033[?25l"));
|
||||
bstr_xappend(root, out, bstr0(TERM_ESC_HIDE_CURSOR));
|
||||
} else if (!new_lines && root->status_lines) {
|
||||
bstr_xappend(root, out, bstr0("\033[?25h"));
|
||||
bstr_xappend(root, out, bstr0(TERM_ESC_RESTORE_CURSOR));
|
||||
}
|
||||
|
||||
int line_skip = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user