mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 22:22:22 +00:00
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:
parent
23583b7791
commit
6445ebdb24
@ -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));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user