xibbon / LaTerminal

50 stars 2 forks source link

Support ANSI OSC52 to copy content remotely #38

Closed aymanbagabas closed 1 year ago

aymanbagabas commented 1 year ago

A wide range of desktop terminals now support ANSI OSC52 escape sequence to manipulate the clipboard. Adding support for this means the user can copy content remotely using the escape sequence.

migueldeicaza commented 1 year ago

This is a fine idea, let me research whether this is considered a security problem or not. I recall xterm put this behind some flag.

Some discussions:

Seems like writing to it is relatively safe, and perhaps a warning can be added

migueldeicaza commented 1 year ago

(Btw, SwiftTerm the library already supports this, this is a matter of wiring up the request copyClipboard, and determining what UI is necessary for it)

migueldeicaza commented 1 year ago

This has been implemented, and will be in the release after the next (1.0.11)