This is an automated email from the git hooks/post-receive script.

git pushed a commit to reference refs/pull/36/head
in repository terminology.

View the commit online.

commit a22c9283d72be70984b1a6fac2fae3ee1c26c902
Author: [email protected] <[email protected]>
AuthorDate: Sat Mar 21 16:56:54 2026 -0600

    fix: flush stdout before escape in tymux new → attach handoff
    
    cmd_new uses printf (buffered) then calls cmd_attach which uses
    write (unbuffered) for the escape sequence. Without fflush, the
    escape could arrive at the PTY before the text, causing Terminology
    to process the widget switch before displaying the "created" message.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
 src/bin/tymux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/tymux.c b/src/bin/tymux.c
index 985cc6b4..72c50bd5 100644
--- a/src/bin/tymux.c
+++ b/src/bin/tymux.c
@@ -981,6 +981,7 @@ cmd_new(int argc, char **argv)
      }
 
    printf("Tymux '%s' created.\n", name);
+   fflush(stdout); /* ensure text is flushed before escape sequence in cmd_attach */
 
    /* Attach inline — reuse cmd_attach which acts as a terminal proxy. */
    /* Build a synthetic argv for cmd_attach: "attach <name>" */

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

Reply via email to