magiblot / tvision

A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
Other
1.99k stars 150 forks source link

add OSC52 "set clipboard" support to tvision internal text file editor control #82

Closed unxed closed 1 year ago

unxed commented 1 year ago

just like here: https://github.com/unxed/turbo/commit/59f54e3452fa462e65b1f4260efd36d0a1a1bbd0

magiblot commented 1 year ago

I have an idea on how to integrate clipboard support into the Turbo Vision API, but it's not going to be ready anytime soon.

unxed commented 1 year ago

Please keep in mind that clipboard support via far2l extensions would also be nice to do on the turbo vision side, so that all interactions with the terminal are in one place, and not distributed between turbo vision and turbo. Some details here.

magiblot commented 1 year ago

Mission accomplished 😎. Fixed as of ca1429f7b764ae197bf0ad5f2d1fa7e7d8988d33.

We support all clipboard interaction methods (Win32, macOS, X11, Wayland, far2l, OSC 52, paste via terminal).

And now the cut/copy/paste commands not only work with TEditor, but also TInputLine 😎.