mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-22 12:07:15 +03:00
8f214c51c0
A better solution from an ecosystem perspective is to just work with the original protocol. I have modified kitty's escape parser to special case OSC 52 handling without changing its max escape code size. Basically, it works by splitting up OSC 52 escape codes longer than the max size into a series of partial OSC 52 escape codes. These get dispatched to the UI layer where it accumulates them upto the 8MB limit and then sends to clipboard when the partial sequence ends. See https://github.com/ranger/ranger/issues/1861
33 lines
1.3 KiB
ReStructuredText
33 lines
1.3 KiB
ReStructuredText
Terminal protocol extensions
|
|
===================================
|
|
|
|
|kitty| has extensions to the legacy terminal protocol, to enable advanced features.
|
|
These are typically in the form of new or re-purposed escape codes. While these
|
|
extensions are currently |kitty| specific, it would be nice to get some of them
|
|
adopted more broadly, to push the state of terminal emulators forward.
|
|
|
|
The goal of these extensions is to be as small and unobtrusive as possible,
|
|
while filling in some gaps in the existing xterm protocol. In particular, one
|
|
of the goals of this specification is explicitly not to "re-imagine" the tty.
|
|
The tty should remain what it is -- a device for efficiently processing text
|
|
received as a simple byte stream. Another objective is to only move the minimum
|
|
possible amount of extra functionality into the terminal program itself. This
|
|
is to make it as easy to implement these protocol extensions as possible,
|
|
thereby hopefully encouraging their widespread adoption.
|
|
|
|
If you wish to discuss these extensions, propose additions/changes to them
|
|
please do so by opening issues in the `GitHub
|
|
<https://github.com/kovidgoyal/kitty/issues>`_ bug tracker.
|
|
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
underlines
|
|
graphics-protocol
|
|
keyboard-protocol
|
|
desktop-notifications
|
|
unscroll
|
|
color-stack
|
|
deccara
|