This implements OSC-5522, kitty's extended version of OSC-52, where all mime-types are made available to the terminal application. This means you can, for example, copy and paste image data.
Also supported is the "event extension", where paste actions (i.e. ctrl+shift+v etc) emit OSC-5522 mime-type listings instead of actually pasting anything. The terminal application can then request whichever mime-type it wants, or ignore the paste. This mode is activated by enabling private mode 5522.
kitten clipboard can be used to test the implementation.
This implements [OSC-5522](https://sw.kovidgoyal.net/kitty/clipboard/), kitty's extended version of OSC-52, where all mime-types are made available to the terminal application. This means you can, for example, copy and paste image data.
Also supported is the [_"event extension"_](https://rockorager.dev/misc/bracketed-paste-mime/), where paste actions (i.e. ctrl+shift+v etc) emit OSC-5522 mime-type listings instead of actually pasting anything. The terminal application can then request whichever mime-type it wants, or ignore the paste. This mode is activated by enabling private mode 5522.
[`kitten clipboard`](https://sw.kovidgoyal.net/kitty/kittens/clipboard/) can be used to test the implementation.