Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSC52 Support #2366

Open
ikey4u opened this issue Sep 23, 2024 · 1 comment
Open

Add OSC52 Support #2366

ikey4u opened this issue Sep 23, 2024 · 1 comment

Comments

@ikey4u
Copy link

ikey4u commented Sep 23, 2024

Is your feature request related to a problem? Please describe.

I do development on a remote server using ssh, I love gitui and use it daily on my remote server. it seems that gitui uses xsel on Linux to copy text, but in my case it will give error likes:

copy to clipboard error: 
`"xsel"`: /usr/bin/xsel: Can't open display: (null)  
 Inappropriate ioctl for device

This error is caused that I do not forward X11 when login into the server using ssh. We know that gitui does not need to run any graphics since it works great on terminal without X on Linux, and the error will mislead the user.

As a result, I think gitui should have a better solution to support text copy.

Describe the solution you'd like

I hope that gitui will support OSC52 encoding. This encoding is supported by many terminals, for example wezterm, iterm. OSC52 supports you copy text from remote server to your clipboard of local machine.

Additional context

vim has a plugin vim-oscyank to support OSC52, it should be a good reference implmentation.

@extrawurst
Copy link
Owner

more info on OSC52 here: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants