Hi Neal! On Fri 02 Sep 2022 at 07:55:24 -0700, Neal Fultz wrote: > > In my Alacritty terminal (on Debian testing, with TERM=xterm-256color), > > if I run the following, it puts "test" in my OS clipboard: > > > > printf "\033]52;c;$(printf "%s" "test" | base64)\a" > > > > However, when run from within screen 4.09.00 (with an empty screenrc), > > this doesn't work. (I.e., the OS clipboard stays unaltered.) > > I would recommend trying the helper functions from hterm: > https://chromium.googlesource.com/apps/libapps/+/master/hterm/etc > > echo 123 | osc52 > > works fine with hterm -> ssh -> screen 4.08 > > You can read the script to see the extra escaping they do.
Thanks! The osc52 helper indeed works fine for Alacritty -> SSH -> screen 4.09.00. I regularly use nested screens (local+remote), and then the helper doesn't work anymore. I got it working again like this: # sed -E -e 's:^:\x1bP:' -e 's:$:\x1b\\:' | \ sed -E -e 's:^:\x1bP\x1bP:' -e 's:$:\x1b\x1b\\\x1b\\\\:' | \ Not sure if there's a better way. -- N: Nieko Maatjes I: nieko.net E: scr...@nieko.net K: nieko.net/data/key O: Nieko @ IRCNet