<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/osc.c, branch 1.10.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.10.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.10.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-12-01T19:07:53Z</updated>
<entry>
<title>osc-4: don’t update the color of cells with RGB fg/bg colors</title>
<updated>2021-12-01T19:07:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-30T18:36:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a3016a6cc909d9c383359a4eaafd30bcd52bd272'/>
<id>urn:sha1:a3016a6cc909d9c383359a4eaafd30bcd52bd272</id>
<content type='text'>
OSC 4/104 changes the 256-color palette. We also run a pass over the
visible cells, and update their colors.

This was previously done by comparing the actual color of the cell,
with the “old” color in the palette. If they matched, the cell was
updated.

This meant that cells with an RGB color (i.e. not a palette based
color) was also updated, _if_ its color matched the palette color.

Now that each cell tracks its color *source*, we can ignore all
non-palette based cells.

Note that this still isn’t perfect: if the palette contains multiple
entries with the same color, we’ll end up updating the “wrong” cells.

Closes #678
</content>
</entry>
<entry>
<title>term: track cell color source</title>
<updated>2021-11-20T15:46:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-11-20T15:29:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d46af6bd7ac7606bf99d63b2453b656a5defb892'/>
<id>urn:sha1:d46af6bd7ac7606bf99d63b2453b656a5defb892</id>
<content type='text'>
Each cell now tracks it’s current color source:

* default fg/bg
* base16 fg/bg (maps to *both* the regular and bright colors)
* base256 fg/bg
* RGB

Note that we don’t have enough bits to separate the regular from the
bright colors. These _shouldn’t_ be the same, so we ought to be
fine...
</content>
</entry>
<entry>
<title>Merge branch 'parse-rgb-strlen'</title>
<updated>2021-10-20T17:59:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-10-20T17:59:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=174f8870c75df87e4603455d8025676259fde108'/>
<id>urn:sha1:174f8870c75df87e4603455d8025676259fde108</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: use STRLEN() macro to make parse_rgb() more self-documenting</title>
<updated>2021-10-20T16:05:36Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-10-20T16:05:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e878892792e36f47a8ed5caea7bd56c75c1c626'/>
<id>urn:sha1:2e878892792e36f47a8ed5caea7bd56c75c1c626</id>
<content type='text'>
The empty literals in the macro are to ensure the argument itself
is a string literal, so it can't be used on anything else.
</content>
</entry>
<entry>
<title>osc: use BEL terminator in OSC replies to BEL-terminated OSC queries</title>
<updated>2021-10-20T11:48:37Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-10-20T11:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=52dcf72d0b80b9f4c159744447b34d215a38d24c'/>
<id>urn:sha1:52dcf72d0b80b9f4c159744447b34d215a38d24c</id>
<content type='text'>
This matches the documented (and observed) behavior in xterm:

&gt; XTerm accepts either BEL or ST for terminating OSC sequences, and
&gt; when returning information, uses the same terminator used in a query

-- https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands
</content>
</entry>
<entry>
<title>osc: fix typo in LOG_DBG() message</title>
<updated>2021-07-24T00:58:34Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-07-24T00:58:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0a22183fdff105779c7896daa2563aec958ffc4c'/>
<id>urn:sha1:0a22183fdff105779c7896daa2563aec958ffc4c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: implement iTerm2’s OSC-9 - desktop notifications</title>
<updated>2021-06-04T05:44:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-06-02T15:50:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=405b887a82ec83cf8423378ae4f4f92226998905'/>
<id>urn:sha1:405b887a82ec83cf8423378ae4f4f92226998905</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: implement OSC 17+19: change selection background/foreground colors</title>
<updated>2021-04-08T08:43:36Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-07T06:09:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=55b343f69030c22fcd36b88d2af445acdd69b732'/>
<id>urn:sha1:55b343f69030c22fcd36b88d2af445acdd69b732</id>
<content type='text'>
And of course, we also implement the corresponding reset sequences,
OSC 117+119.
</content>
</entry>
<entry>
<title>osc: reset background alpha when resetting the background color</title>
<updated>2021-04-08T08:41:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-07T17:04:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=28c2bea800e5de411d7c52680bf698ca7246f1aa'/>
<id>urn:sha1:28c2bea800e5de411d7c52680bf698ca7246f1aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: parse_legacy_color(): the alpha component is not a floating point number</title>
<updated>2021-04-08T08:41:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-07T06:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8020c14637d345be246ff09cddd509dc763caf76'/>
<id>urn:sha1:8020c14637d345be246ff09cddd509dc763caf76</id>
<content type='text'>
When using the urxvt extension of the XParseColor format, the alpha
component is not a floating point number, but a decimal number in the
range 0-100.
</content>
</entry>
<entry>
<title>osc: parse_rgb(): ensure ‘alpha’ has been initialized</title>
<updated>2021-04-08T08:41:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-05T20:31:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5ff655506d0e4251021c48e7923fbbed2b822810'/>
<id>urn:sha1:5ff655506d0e4251021c48e7923fbbed2b822810</id>
<content type='text'>
</content>
</entry>
<entry>
<title>osc: add support for URxvt extension to include alpha in OSC-11</title>
<updated>2021-04-08T08:41:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-05T20:05:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ed41bffc287c8f9f2bd442d7ab48ff394ace94a5'/>
<id>urn:sha1:ed41bffc287c8f9f2bd442d7ab48ff394ace94a5</id>
<content type='text'>
There are two variants, either using a ‘[percent]’ prefix for legacy
colors, or using ‘rgba:r/g/b/a’ instead of ‘rgb:r/g/b’.

Closes #436
</content>
</entry>
<entry>
<title>config/terminal: refactor: remove “default_*” color members from terminal struct</title>
<updated>2021-04-07T06:07:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-07T06:07:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=936063271f391c394ec9204f7f3aff4da5c9203c'/>
<id>urn:sha1:936063271f391c394ec9204f7f3aff4da5c9203c</id>
<content type='text'>
Access the original colors in the configuration instead.
</content>
</entry>
<entry>
<title>osc: verify OSC 4/104 color index is valid</title>
<updated>2021-04-05T19:13:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-05T19:06:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4f0c0628a20f89c6238f1f360273ae2556901727'/>
<id>urn:sha1:4f0c0628a20f89c6238f1f360273ae2556901727</id>
<content type='text'>
Closes #434
</content>
</entry>
<entry>
<title>osc-8: fix thinko: can’t use the ID parameters *address* as actual ID</title>
<updated>2021-02-21T19:15:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-14T12:28:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d44cda11bf435b7687fada29946d4a1cecbc728c'/>
<id>urn:sha1:d44cda11bf435b7687fada29946d4a1cecbc728c</id>
<content type='text'>
Doing so means the next OSC-8 URL emitted by the client application,
with the same ID, will get a *new* id internally.

Instead, hash the string and use that as ID.
</content>
</entry>
<entry>
<title>term: add ‘id’ parameter to term_osc8_open()</title>
<updated>2021-02-21T19:14:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-13T12:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b934969b858d8874e480cc9ee7f4ccf5657f6f2a'/>
<id>urn:sha1:b934969b858d8874e480cc9ee7f4ccf5657f6f2a</id>
<content type='text'>
The current OSC-8 URL’s ID is now tracked along with the URI itself,
and its starting point.
</content>
</entry>
<entry>
<title>osc: 8: parse params, and the ‘id’ parameter specifically</title>
<updated>2021-02-21T19:14:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-13T12:41:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ecbfc2bbe9b1964c8b2563b52618393d63dc40ce'/>
<id>urn:sha1:ecbfc2bbe9b1964c8b2563b52618393d63dc40ce</id>
<content type='text'>
Applications can assign an ID to the URL. This is used to associate
the parts of a split up URL with each other:

  ╔═ file1 ════╗
  ║          ╔═ file2 ═══╗
  ║http://exa║Lorem ipsum║
  ║le.com    ║ dolor sit ║
  ║          ║amet, conse║
  ╚══════════║ctetur adip║
             ╚═══════════╝

In the example above, ‘http://exa’ and ‘le.com’ are part of the same
URL, but by necessity split up into two OSC-8 URLs.

If the application sets the same ID for those two OSC-8 URLs, the
terminal can ensure they are handled as one.
</content>
</entry>
<entry>
<title>osc: parse OSC-8, by calling term_osc8_{open,close} as appropriate</title>
<updated>2021-02-21T19:14:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-13T11:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b55f6925d360dcb8109b90b266c0e9c2fc625b0c'/>
<id>urn:sha1:b55f6925d360dcb8109b90b266c0e9c2fc625b0c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>debug: rename assert() to xassert(), to avoid clashing with &lt;assert.h&gt;</title>
<updated>2021-01-16T20:16:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-16T20:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e56136ce1192d04a52b01ccb41284f0b7896430e'/>
<id>urn:sha1:e56136ce1192d04a52b01ccb41284f0b7896430e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add xsnprintf() and remove some unnecessary strlen(3) calls</title>
<updated>2021-01-14T21:30:06Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-14T21:30:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3f4cfa338b5035b3789ea414eab9f139a18d140b'/>
<id>urn:sha1:3f4cfa338b5035b3789ea414eab9f139a18d140b</id>
<content type='text'>
</content>
</entry>
</feed>
