This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch tymux-10-quiet-head
in repository terminology.
View the commit online.
commit b4e4e816047c8ddf8cb896427f3c42b44abe54b7
Author: Boris Faure <[email protected]>
AuthorDate: Sun Nov 15 17:22:16 2026 +0000
termptyesc: ignore OSC 9;4 once a 7501 report was applied
Once a program status report was applied, progress comes only from
7501 until the next RIS: 7501 is the newer of the two protocols, so it
wins while a program uses both.
The osc-7501-records.sh checksum moves: the script now mixes 9;4
reports in, and the gate changes what they do.
---
src/bin/termptyesc.c | 4 ++++
tests/osc-7501-records.sh | 4 ++++
tests/tests.results | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index f1facda0..0eb01f90 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -5424,6 +5424,10 @@ _handle_osc_9_4_progress(Termpty *ty, const char *s, int len)
int value = -1;
int i;
+ /* once a 7501 report was applied, progress comes only from 7501,
+ * until RIS (which clears program_status_seen) */
+ if (ty->program_status_seen)
+ return;
if ((len < 2) || (s[0] != ';') || (s[1] < '0') || (s[1] > '4'))
goto bad;
state = (Termpty_Progress_State)(s[1] - '0');
diff --git a/tests/osc-7501-records.sh b/tests/osc-7501-records.sh
index 0a438d9c..27de7946 100644
--- a/tests/osc-7501-records.sh
+++ b/tests/osc-7501-records.sh
@@ -27,6 +27,8 @@ printf '\033]7501;id=m1:state=working\033\\'
printf '\033]7501;id=m2:state=done\033\\'
printf '\033c'
+# after RIS a 9;4 report is honored again, until the next 7501 report
+printf '\033]9;4;1;70\033\\'
# records survive the alternate screen and DECSTR
printf '\033[?1049h'
printf '\033]7501;id=alt:state=working\033\\'
@@ -34,3 +36,5 @@ printf '\033[!p'
printf '\033[?1049l'
printf '\033]7501;id=s1:state=done\033\\'
printf '\033]7501;id=s2:state=error\007'
+# now that a 7501 report was applied, 9;4 is ignored until the next RIS
+printf '\033]9;4;1;90\007'
diff --git a/tests/tests.results b/tests/tests.results
index c94fd64b..6d97c923 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -156,7 +156,7 @@ osc-99-query.sh 0fd52c3dd0381988baa88554858cc7c5
osc-99-occasion.sh f66bc070f39a87a6884b14ad15df76d9
osc-7501.sh 34fdeb17e8ea39728064333158a99b1c
osc-7501-invalid.sh 535a4caa2aa67567dea2ef8e6dd1b4b8
-osc-7501-records.sh ac70572df8728584fd1549d5b77ddbb2
+osc-7501-records.sh d54b75f0c79b6749448a543548205098
osc-colors-ris.sh ae9b8008e2cb1fa2bae13a471c90733f
osc-110-112.sh 318a0f4da4b07567353e057bb2de5b2b
osc-colors-st.sh 84636d0d4589573e1e9b3c0fcceb2091
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.