Browse Source

fix tmux experiment

master
Julian Noble 2 weeks ago
parent
commit
c2bc6043c2
  1. 4
      src/bootsupport/modules/punk/console-0.1.1.tm
  2. 2
      src/modules/punk/console-999999.0a1.0.tm

4
src/bootsupport/modules/punk/console-0.1.1.tm

@ -836,7 +836,9 @@ namespace eval punk::console {
} }
#write before console enableRaw vs after?? #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 #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\\" set query "\x1bPtmux\;[string map [list \x1b \x1b\x1b] $query]\x1b\\"
} }
puts -nonewline $output $query;flush $output puts -nonewline $output $query;flush $output

2
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 #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? #zellij? screen?
if {[info exists $::env(TMUX)]} { if {[info exists ::env(TMUX)]} {
set query "\x1bPtmux\;[string map [list \x1b \x1b\x1b] $query]\x1b\\" set query "\x1bPtmux\;[string map [list \x1b \x1b\x1b] $query]\x1b\\"
} }
puts -nonewline $output $query;flush $output puts -nonewline $output $query;flush $output

Loading…
Cancel
Save