You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using Copilot CLI on remote servers over ssh, xclip/xsel etc. are rarely available. In such environments, OSC52 sequences are a simple and convenient way to access clipboards.
I tried writing a proxy script to handle xclip -in -sel clipboard (which is what Copilot CLI calls), and was only partially successful.
echo -ne "\e]52;c;$(echo -n "$data"| base64)\a"
This does not work, as the output of this command is not written to stdout for a terminal emulator to access. The following works:
anku94
changed the title
[FEAT]: Support ANSI OSC2 as a "clipboard" for "Copy command"
[FEAT]: Support ANSI OSC52 as a "clipboard" for "Copy command"
Jun 24, 2024
Describe the need
If using Copilot CLI on remote servers over ssh,
xclip
/xsel
etc. are rarely available. In such environments, OSC52 sequences are a simple and convenient way to access clipboards.I tried writing a proxy script to handle
xclip -in -sel clipboard
(which is what Copilot CLI calls), and was only partially successful.This does not work, as the output of this command is not written to
stdout
for a terminal emulator to access. The following works:if called using
It is a hack, and it would be much more straightforward for Copilot CLI to emit the sequence to
stdout
.Thank you!!
The text was updated successfully, but these errors were encountered: