theimpostor / osc

Access the system clipboard from anywhere using the ANSI OSC52 sequence
MIT License
75 stars 4 forks source link

Fix paste in mintty #13

Open theimpostor opened 2 weeks ago

theimpostor commented 2 weeks ago

mintty responds to paste requests with the clipboard parameter empty which is a valid response (e.g. "\x1b]52;;", however osc expects exactly one character there (it strips the first 7 bytes of the response), and thus the data argument is corrupted.

First reported here: https://github.com/mintty/mintty/issues/1264#issuecomment-2471356648

theimpostor commented 1 week ago

@Kreijstal can you please try now with the latest release (https://github.com/theimpostor/osc/releases/tag/v0.4.5).

Kreijstal commented 1 week ago

Alright