Skip to content

Instantly share code, notes, and snippets.

@skt041959
Last active November 11, 2021 07:24
Show Gist options
  • Save skt041959/8461f3e7392736fce4ac37068917d9d5 to your computer and use it in GitHub Desktop.
Save skt041959/8461f3e7392736fce4ac37068917d9d5 to your computer and use it in GitHub Desktop.
Use osc52 in nested tmux https://github.com/tmux/tmux/issues/846
test_osc() {
printf %b '\033]52;c;' $(date +"1_%m_%d_%H_%M" | base64) '\007'
printf %b '\033Ptmux;\033\033]52;c;' $(date +"2_%m_%d_%H_%M" | base64) '\007\033\\'
printf %b '\ePtmux;\e\ePtmux;\e\e\e\e]52;c;' $(date +"3_%m_%d_%H_%M" | base64) '\a\a\e\e\\\e\'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment