From f53e941ba082905814340f243164d7ae3a9538a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 23 Mar 2024 04:01:02 +0100 Subject: [PATCH] msg: use defines for hide/restore cursor code --- common/msg.c | 4 ++-- 1 file 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;