Browse Source

experiment with tmux passthrough for punk::console::internal::get_ansi_response_payload

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

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

@ -836,6 +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)]} {
set query "\x1bPtmux\;[string map [list \x1b \x1b\x1b] $query]\x1b\\"
}
puts -nonewline $output $query;flush $output puts -nonewline $output $query;flush $output
chan configure $input -blocking 0 chan configure $input -blocking 0

5
src/modules/punk/console-999999.0a1.0.tm

@ -836,6 +836,11 @@ 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
#zellij? screen?
if {[info exists $::env(TMUX)]} {
set query "\x1bPtmux\;[string map [list \x1b \x1b\x1b] $query]\x1b\\"
}
puts -nonewline $output $query;flush $output puts -nonewline $output $query;flush $output
chan configure $input -blocking 0 chan configure $input -blocking 0

Loading…
Cancel
Save