time to dig through tmux's source and see how it works
:comfy_cirno: