msg: use defines for hide/restore cursor code

This commit is contained in:
Kacper Michajłow 2024-03-23 04:01:02 +01:00
parent 1172c4ead9
commit f53e941ba0
1 changed files with 2 additions and 2 deletions

View File

@ -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;