I use xterm that comes with XQuartz on my macbook. However OSC 52 control sequence doesn't seem to work. Here's how to repro:
- open xterm
- in the shell, issue
printf '\e]52;c;%s\007' $(printf 'test off' | base64)
- try to "paste" in somewhere else, e.g., TextEdit
I don't see the text "test off" being copied in TextEdit. So seems my xterm's OSC 52 support is broken.
How can I fix it or further root cause it?
from these sources, it looks like xterm does support OSC 52: