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 f410d05ef1ac8455d85b1437a15fb2413bfb3d4c
Author: Boris Faure <[email protected]>
AuthorDate: Fri Oct 30 22:39:16 2026 +0000

    termptyesc: echo the query terminator in OSC 10/11/12 replies
    
    A query sent with BEL gets its reply with BEL, not with ST, as
    Terminology already does for OSC 4.
    
    The checksums of the six scripts whose queries are BEL-terminated move
    with the new terminator: osc-11-query.sh, osc-110-112.sh,
    osc-colors-ris.sh, osc-colors-st.sh, xterm-colors-names.sh,
    xterm-osc-{10,11,12}.sh, as does the expected reply in
    tytest_osc_color_reset(). No other checksum changes.
---
 src/bin/termpty.c    |  8 ++++----
 src/bin/termptyesc.c | 15 ++++++++-------
 tests/tests.results  | 16 ++++++++--------
 3 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 3ad5fe61..e2df8d7c 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -2797,15 +2797,15 @@ tytest_osc_color_reset(void)
    _ty_test_init(&ty, 80, 24);
 
    _ty_feed(&ty, "\x1b]12;#0000ff\x07\x1b]112\x07\x1b]12;?\x07");
-   _ty_reply_is(&ty, "\x1b]12;rgb:8787/8888/8989\x1b\\");
+   _ty_reply_is(&ty, "\x1b]12;rgb:8787/8888/8989\x07");
    _ty_feed(&ty, "\x1b]10;#ff0000\x07\x1b]110\x07\x1b]10;?\x07");
-   _ty_reply_is(&ty, "\x1b]10;rgb:aaaa/aaaa/aaaa\x1b\\");
+   _ty_reply_is(&ty, "\x1b]10;rgb:aaaa/aaaa/aaaa\x07");
 
    /* a "default" value resets like OSC 110/111/112 do */
    _ty_feed(&ty, "\x1b]12;#0000ff\x07\x1b]12;default\x07\x1b]12;?\x07");
-   _ty_reply_is(&ty, "\x1b]12;rgb:8787/8888/8989\x1b\\");
+   _ty_reply_is(&ty, "\x1b]12;rgb:8787/8888/8989\x07");
    _ty_feed(&ty, "\x1b]10;#ff0000\x07\x1b]10;default\x07\x1b]10;?\x07");
-   _ty_reply_is(&ty, "\x1b]10;rgb:aaaa/aaaa/aaaa\x1b\\");
+   _ty_reply_is(&ty, "\x1b]10;rgb:aaaa/aaaa/aaaa\x07");
 
    _ty_test_shutdown(&ty);
    return 0;
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 0b6d8484..d443b195 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -4688,7 +4688,7 @@ _write_xterm_color_response(Termpty *ty, const char *prefix,
 }
 
 static void
-_handle_xterm_10_command(Termpty *ty, Eina_Unicode *p, int len)
+_handle_xterm_10_command(Termpty *ty, Eina_Unicode *p, int len, Eina_Bool bel)
 {
    if (!p || !*p)
      goto err;
@@ -4702,7 +4702,7 @@ _handle_xterm_10_command(Termpty *ty, Eina_Unicode *p, int len)
         int r, g, b;
 
         termio_fg_color_get(ty->obj, &r, &g, &b);
-        _write_xterm_color_response(ty, "10", r, g, b, EINA_FALSE);
+        _write_xterm_color_response(ty, "10", r, g, b, bel);
      }
    else
      {
@@ -4721,7 +4721,8 @@ _handle_xterm_set_color_class(Termpty *ty, Eina_Unicode *p, int len,
                               Evas_Object *obj,
                               const char *color_class,
                               uint8_t number,
-                              void (*reset)(Evas_Object *termio))
+                              void (*reset)(Evas_Object *termio),
+                              Eina_Bool bel)
 {
    if (!p || !*p)
      goto err;
@@ -4747,7 +4748,7 @@ _handle_xterm_set_color_class(Termpty *ty, Eina_Unicode *p, int len,
              ERR("error getting color class '%s' on obj %p", color_class, obj);
           }
         snprintf(pfx, sizeof(pfx), "%u", (unsigned int)number);
-        _write_xterm_color_response(ty, pfx, r, g, b, EINA_FALSE);
+        _write_xterm_color_response(ty, pfx, r, g, b, bel);
      }
    else
      {
@@ -5449,21 +5450,21 @@ _handle_esc_osc(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
         break;
       case 10:
         DBG("Set foreground color");
-        _handle_xterm_10_command(ty, p, payload_len - (p - buf));
+        _handle_xterm_10_command(ty, p, payload_len - (p - buf), bel);
         break;
       case 11:
         DBG("Set background color");
         _handle_xterm_set_color_class(ty, p, payload_len - (p - buf),
                                       termio_bg_get(ty->obj),
                                       "BG", 11,
-                                      termio_reset_bg_color);
+                                      termio_reset_bg_color, bel);
         break;
       case 12:
         DBG("Set cursor color");
         _handle_xterm_set_color_class(ty, p, payload_len - (p - buf),
                                       termio_get_cursor(ty->obj),
                                       "CURSOR", 12,
-                                      termio_reset_cursor_color);
+                                      termio_reset_cursor_color, bel);
         break;
       case 50:
         DBG("xterm font support");
diff --git a/tests/tests.results b/tests/tests.results
index 861ee777..602de84d 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -133,7 +133,7 @@ mouse_reporting_mode_normal_ext_urxvt.sh e3f88dfa3ec6cb0337df52012c90a150
 mouse_reporting_mode_mouse_move_pressed_ext_urxvt.sh f0855a96780cf3797e5a72c9a708b767
 mouse_reporting_mode_all_ext_urxvt.sh 229af4cfcbfff66c93fbe21f493853fd
 shift_in_out.sh d930f1688708a5a65a36e5b49004ceab
-osc-11-query.sh 003decc6cc863d926af6ffe2b2dd204a
+osc-11-query.sh 19bb94fb6002ce679aa7773cd94f8a57
 link_detection.sh 9b1fa98961f82d55d98ff9c00e2ee960
 selection_with_tabs.sh 213c7c2d9a8acc731e0b326a88bb71ef
 selection_empty_lines.sh 2ae3aa22572ef150457b63ed9a78efdc
@@ -143,10 +143,10 @@ 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
-osc-colors-st.sh c22281e85b1138745566d6d1074c8e5a
-xterm-colors-names.sh 89400b3219a2998936c49b1261750156
+osc-colors-ris.sh ae9b8008e2cb1fa2bae13a471c90733f
+osc-110-112.sh 318a0f4da4b07567353e057bb2de5b2b
+osc-colors-st.sh 84636d0d4589573e1e9b3c0fcceb2091
+xterm-colors-names.sh d348708551f5ab340c457bd3a8a71b20
 title_icon_stack_simple.sh 466827743ff8de9cdfb46e9033552cfc
 title_icon_stack_unset.sh fbdac41cbf1e5f2ec6e0053737911ddb
 title_icon_stack_default.sh fbdac41cbf1e5f2ec6e0053737911ddb
@@ -166,9 +166,9 @@ color_link_edc.sh 5e07d738e6cf44af2fb4fd65d1ee7bb3
 color_link_css_rgb.sh 72b7cb4595072ac488906f82e3887192
 color_link_css_hsl.sh 3ff5de5ddb3497395516c81cea80dea4
 crash_empty_osc.sh b8e76e1c3e4e0b6d37278c84909f9ce7
-xterm-osc-10.sh 7eac024a79690beea20b08cb8f51cf18
-xterm-osc-11.sh d95b1b23a773568db74f8aa55d38a02a
-xterm-osc-12.sh 68b5e093b25182617e0b512c96e6aea7
+xterm-osc-10.sh 096d4ca9b0b7aac8442f5e7119cb14bd
+xterm-osc-11.sh 7e18c1d4052b74efee80202cd1f47626
+xterm-osc-12.sh fe7622f2707c96200913b626344178b6
 xterm-colors-sharp.sh c279098fd5e3c39702cf36bc94686ff9
 xterm-colors-rgb.sh e6a432f17c8e9dde652d749f4261b783
 xterm-colors-rgbi.sh e6a432f17c8e9dde652d749f4261b783

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to