From 6445ebdb249abe20a0fdc5e31e75368b299141ca Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 28 Jan 2025 15:16:27 -0800 Subject: [PATCH] tty-utils: use ANSI_ST to terminate OSC sequence The VTE project has requested that we terminate our OSC sequence with ANSI_ST rather than \007 (BEL) and may enforce this in the near future. --- app/flatpak-tty-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/flatpak-tty-utils.c b/app/flatpak-tty-utils.c index 4603de25..b5a57a81 100644 --- a/app/flatpak-tty-utils.c +++ b/app/flatpak-tty-utils.c @@ -547,12 +547,12 @@ void flatpak_pty_clear_progress (void) { if (use_progress_escape_sequence ()) - g_print ("\033]9;4;0\007"); + g_print ("\033]9;4;0\e\\"); } void flatpak_pty_set_progress (guint percent) { if (use_progress_escape_sequence ()) - g_print ("\033]9;4;1;%d\007", MIN (percent, 100)); + g_print ("\033]9;4;1;%d\e\\", MIN (percent, 100)); }