From c2bc6043c23b941462c4050c42764a3d0b65e4f3 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Thu, 1 Jan 2026 22:02:40 +1100 Subject: [PATCH] fix tmux experiment --- src/bootsupport/modules/punk/console-0.1.1.tm | 4 +++- src/modules/punk/console-999999.0a1.0.tm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bootsupport/modules/punk/console-0.1.1.tm b/src/bootsupport/modules/punk/console-0.1.1.tm index 69516efe..30df9ab6 100644 --- a/src/bootsupport/modules/punk/console-0.1.1.tm +++ b/src/bootsupport/modules/punk/console-0.1.1.tm @@ -836,7 +836,9 @@ namespace eval punk::console { } #write before console enableRaw vs after?? #There seem to be problems (e.g on WSL) if we write too early - the output ends up on screen but we don't read it - if {[info exists $::env(TMUX)]} { + + #zellij? screen? + if {[info exists ::env(TMUX)]} { set query "\x1bPtmux\;[string map [list \x1b \x1b\x1b] $query]\x1b\\" } puts -nonewline $output $query;flush $output diff --git a/src/modules/punk/console-999999.0a1.0.tm b/src/modules/punk/console-999999.0a1.0.tm index f0765c4b..98e74315 100644 --- a/src/modules/punk/console-999999.0a1.0.tm +++ b/src/modules/punk/console-999999.0a1.0.tm @@ -838,7 +838,7 @@ namespace eval punk::console { #There seem to be problems (e.g on WSL) if we write too early - the output ends up on screen but we don't read it #zellij? screen? - if {[info exists $::env(TMUX)]} { + if {[info exists ::env(TMUX)]} { set query "\x1bPtmux\;[string map [list \x1b \x1b\x1b] $query]\x1b\\" } puts -nonewline $output $query;flush $output