diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-03-23 04:01:02 +0100 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-13 18:23:16 +0200 |
commit | f53e941ba082905814340f243164d7ae3a9538a1 (patch) | |
tree | 2b3696159e2fe52659d282c982e3462bee3bd9c0 /common | |
parent | 1172c4ead962383b8d9fb012503d745a8098c270 (diff) | |
download | mpv-f53e941ba082905814340f243164d7ae3a9538a1.tar.bz2 mpv-f53e941ba082905814340f243164d7ae3a9538a1.tar.xz |
msg: use defines for hide/restore cursor code
Diffstat (limited to 'common')
-rw-r--r-- | common/msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c index 0ccbdfc9c9..7197e5c23a 100644 --- a/common/msg.c +++ b/common/msg.c @@ -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; |