<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/osc.h, branch osc-5522</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=osc-5522</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=osc-5522'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2026-05-22T09:58:54Z</updated>
<entry>
<title>osc: implement OSC-5522, kitty's extended version of OSC-52</title>
<updated>2026-05-22T09:58:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2026-05-15T16:35:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c366e322eb0813253fb08e2720927f26563a09f8'/>
<id>urn:sha1:c366e322eb0813253fb08e2720927f26563a09f8</id>
<content type='text'>
OSC-5522[^1] gives the terminal application access to all offered
mime-types when reading the clipboard, and allows setting multiple
mime-types when writing to the clipboard (with different contents, if
it so wishes).

In addition to the base protocol, we also implement the _event
extension_[^2], where a paste action (e.g. ctrl+shift+v) results in an
unsolicited mime-type listing being sent to the terminal
application (as if it had issued a mime-type query itself), instead of
the clipboard content being pasted directly. The application follows
up with an explicit read request (or chooses to ignore the event).

The protocol supports "passwords", as a way of bypassing terminal
popups asking the user for approval, after the first popup has been
approved by the user. Foot doesn't implement this kind of user
approval, but all read and write requests are denied with EPERM if the
user has disabled OSC copy/pasting with the security.osc52
configuration option. In addition, if disabled, event reporting cannot
be enabled at all (i.e. 'CSI ? 5522 h' is ignored).

[^1]: https://sw.kovidgoyal.net/kitty/clipboard/
[^2]: https://rockorager.dev/misc/bracketed-paste-mime/
</content>
</entry>
<entry>
<title>ocs: renamed parameter size -&gt; required_size in osc_ensure_size()</title>
<updated>2019-07-19T07:56:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-19T07:56:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a5737a63b8aedf640392d4911376a6a5c84fc338'/>
<id>urn:sha1:a5737a63b8aedf640392d4911376a6a5c84fc338</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: allocate data buffer dynamically</title>
<updated>2019-07-19T06:59:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-19T06:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=153628a21749f954c4182c72335a9c3524e9a336'/>
<id>urn:sha1:153628a21749f954c4182c72335a9c3524e9a336</id>
<content type='text'>
</content>
</entry>
<entry>
<title>performance improvements</title>
<updated>2019-07-07T14:32:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-07T14:32:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d63629b370c4e38db527605863f0533666b6f629'/>
<id>urn:sha1:d63629b370c4e38db527605863f0533666b6f629</id>
<content type='text'>
* action() returns void - this gets rid of checks in vt_from_slave()
* split up ACTION_PRINT into ACTION_PRINT (ASCII) and ACTION_UTF8_PRINT
  ACTION_PRINT is on the hot path, and we want it streamlined.
* Remove run-time checkout for unimplemented state transitions, as we
  shouldn't have any of those left.
* Don't re-load current VT state on each iteration in vt_from_slave()
</content>
</entry>
<entry>
<title>wip: vt parsing: initial csi/osc dispatching</title>
<updated>2019-06-15T20:22:44Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-06-15T20:22:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2a4c08b94104a31a0944f4b0df6729029c1b55ba'/>
<id>urn:sha1:2a4c08b94104a31a0944f4b0df6729029c1b55ba</id>
<content type='text'>
</content>
</entry>
</feed>
