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 03a0ea20aad68c4623aea4859456189320269bc6
Author: Boris Faure <[email protected]>
AuthorDate: Fri Oct 30 15:52:23 2026 +0000
termptyops: reset the palette on RIS and DECSTR
Terminology's DECSTR already restores the OSC 10/11/12 colours through
termio_reset_main_colors(), so the palette follows the same rule: an
application that rewrites the palette is expected to re-apply it after
a reset, which is what most text apps do.
---
src/bin/termptyops.c | 1 +
tests/osc-4-reset.sh | 16 ++++++++++++++++
tests/tests.results | 1 +
3 files changed, 18 insertions(+)
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index a95eb421..0b750d48 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -655,6 +655,7 @@ termpty_soft_reset_state(Termpty *ty)
termpty_sync_output_reset(ty);
termio_reset_main_colors(ty->obj);
+ termio_palette_reset(ty->obj);
termpty_clear_tabs_on_screen(ty);
for (i = 0; i < ty->w; i += TAB_WIDTH)
{
diff --git a/tests/osc-4-reset.sh b/tests/osc-4-reset.sh
new file mode 100644
index 00000000..0d0fc4e8
--- /dev/null
+++ b/tests/osc-4-reset.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# RIS and DECSTR reset the palette in xterm: ReallyReset runs before the
+# "if (full)" branch, and both VTReset paths reach it. Terminology's
+# DECSTR already restores the OSC 10/11/12 colours the same way.
+
+printf '\033]4;1;#010101;100;#646464\007'
+printf '\033[!p'
+printf '\033]4;1;?;100;?\007'
+printf '\033]4;1;#010101\007'
+printf '\033c'
+printf '\033]4;1;?\007'
+
+## replies: both queries return the defaults
+# \e]4;1;rgb:c0c0/0000/0000\a \e]4;100;rgb:8787/8787/0000\a
+# \e]4;1;rgb:c0c0/0000/0000\a
diff --git a/tests/tests.results b/tests/tests.results
index efa362fa..861ee777 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -141,6 +141,7 @@ osc-invalid.sh e5933e7dd49d52b80240e352f4ff8965
osc-4-query.sh 931d15bee6dffe2631cd127d6528a733
osc-4-set.sh fc0c231e5ae1fda14d355e22f56099c4
osc-104.sh 773d4be48c4ef99cb5a34c59fe771e25
+osc-4-reset.sh 76f6b1317c3ced32c16da58c2967efb5
osc-no-payload.sh 8aa7b12e298dfbeb5a48dcc48ea2f9a8
osc-colors-ris.sh b9cde87fbfcf5e02a0d906a8dee7dff3
osc-110-112.sh 15d223b8ed1276fdc5fe2a708bc3b3db
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.