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.
This commit is contained in:
Christian Hergert 2025-01-28 15:16:27 -08:00 committed by Patrick
parent 23583b7791
commit 6445ebdb24

View File

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