<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/scripts, branch releases/1.23</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.23</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.23'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2025-04-28T09:55:43Z</updated>
<entry>
<title>scripts: srgb: use 2.2 gamma TF instead of piece-wise sRGB TF</title>
<updated>2025-04-28T09:55:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-04-27T08:14:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=97910a5cbac84bb99254849ee1b5c00b00b983c5'/>
<id>urn:sha1:97910a5cbac84bb99254849ee1b5c00b00b983c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: gamma-correct blending</title>
<updated>2025-03-05T17:45:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2025-02-21T10:01:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ccf625b9914917e131beb83379c526bab1927edc'/>
<id>urn:sha1:ccf625b9914917e131beb83379c526bab1927edc</id>
<content type='text'>
This implements gamma-correct blending, which mainly affects font
rendering.

The implementation requires compile-time availability of the new
color-management protocol (available in wayland-protocols &gt;= 1.41),
and run-time support for the same in the compositor (specifically, the
EXT_LINEAR TF function and sRGB primaries).

How it works: all colors are decoded from sRGB to linear (using a
lookup table, generated in the exact same way pixman generates it's
internal conversion tables) before being used by pixman. The resulting
image buffer is thus in decoded/linear format. We use the
color-management protocol to inform the compositor of this, by tagging
the wayland surfaces with the 'ext_linear' image attribute.

Sixes: all colors are sRGB internally, and decoded to linear before
being used in any sixels. Thus, the image buffers will contain linear
colors. This is important, since otherwise there would be a
decode/encode penalty every time a sixel is blended to the grid.

Emojis: we require fcft &gt;= 3.2, which adds support for sRGB decoding
color glyphs. Meaning, the emoji pixman surfaces can be blended
directly to the grid, just like sixels.

Gamma-correct blending is enabled by default *when the compositor
supports it*. There's a new option to explicitly enable/disable it:
gamma-correct-blending=no|yes. If set to 'yes', and the compositor
does not implement the required color-management features, warning
logs are emitted.

There's a loss of precision when storing linear pixels in 8-bit
channels. For this reason, this patch also adds supports for 10-bit
surfaces. For now, this is disabled by default since such surfaces
only have 2 bits for alpha. It can be enabled with
tweak.surface-bit-depth=10-bit.

Perhaps, in the future, we can enable it by default if:

* gamma-correct blending is enabled
* the user has not enabled a transparent background
</content>
</entry>
<entry>
<title>scripts: generate-emoji-variation-sequences: don't assume single codepoint sequences</title>
<updated>2024-06-26T16:33:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-26T16:30:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=085c60a33423bf46f64f225e438f62ad12fff8c9'/>
<id>urn:sha1:085c60a33423bf46f64f225e438f62ad12fff8c9</id>
<content type='text'>
Right now (Unicode 15.1), all valid variation sequences consist of a
single Unicode codepoint (followed by either VS-15 or VS-16).

Don't assume this is the case.

We don't actually handle longer sequences. But now we at least catch
such escapes, and error out.
</content>
</entry>
<entry>
<title>scripts: generate-emoji-variation-sequences: compact the C struct</title>
<updated>2024-06-26T16:32:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-25T14:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=aed9c392ebdf1b030f819ad3e55d21d80dbee2cf'/>
<id>urn:sha1:aed9c392ebdf1b030f819ad3e55d21d80dbee2cf</id>
<content type='text'>
Lookups in this table is not performance critical at all.

Thus, let's compact it to bring down the binary size of foot.

This brings the size of each entry down from 9 bytes to 6, bringing
the size of the whole thing down from 1647 bytes to 1098 bytes, saving
us 549 bytes.
</content>
</entry>
<entry>
<title>scripts: generate-emoji-variation-sequences: don't assume input is sorted</title>
<updated>2024-06-25T06:23:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-25T06:23:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ecb1ca61afe3c3b3ff676bfc815996b5b2ffd26d'/>
<id>urn:sha1:ecb1ca61afe3c3b3ff676bfc815996b5b2ffd26d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: only apply VS-15/16 to valid sequences</title>
<updated>2024-06-25T06:20:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-24T19:18:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=96656614454f96034d9cc0f0e14c76493b5b7c6b'/>
<id>urn:sha1:96656614454f96034d9cc0f0e14c76493b5b7c6b</id>
<content type='text'>
At compile time, build a lookup table from the Unicode data file
'emoji-variation-sequences.txt'.

At run-time, when we detect a VS-15/16 sequence, do a lookup in this
table, and enforce the variation selector iff the sequence is valid.

Closes #1742
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: fix syntax error</title>
<updated>2024-05-01T18:18:41Z</updated>
<author>
<name>Artturin</name>
<email>Artturin@artturin.com</email>
</author>
<published>2024-05-01T18:18:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3a7ea1f44b5cac16c4d67cddb75c02638d59c55c'/>
<id>urn:sha1:3a7ea1f44b5cac16c4d67cddb75c02638d59c55c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: use \xNN for control characters</title>
<updated>2024-04-30T08:50:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-04-30T08:50:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3c4669061baadac105c274bd0d30aadb27b0b642'/>
<id>urn:sha1:3c4669061baadac105c274bd0d30aadb27b0b642</id>
<content type='text'>
Instead of emitting raw control characters (for e.g. bel, cub1 and
kbs), use \xNN C string escapes.
</content>
</entry>
<entry>
<title>dcs: xtgettcap: always reply with tigetstr(3) formatted "strings"</title>
<updated>2024-04-27T07:38:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-04-27T07:38:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a3debf7741d20826bdc6ab786f4ccf0ef7358619'/>
<id>urn:sha1:a3debf7741d20826bdc6ab786f4ccf0ef7358619</id>
<content type='text'>
That is, instead of sometimes replying with a "source" encoded
string (where e.g. '\E' are returned just like that, and not as an
actual ESC), always unescape all string values.

This also includes \n \r \t \b \f \s, \^ \\ \ \:, as well as ^x-styled
escapes.

Closes #1701
</content>
</entry>
<entry>
<title>scripts: generate-alt-random: generate both opaque and transparent sixels</title>
<updated>2024-03-25T15:33:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-03-25T15:33:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dcd4ab4ab8da8de458acbfc3a4cf2015e88dec3e'/>
<id>urn:sha1:dcd4ab4ab8da8de458acbfc3a4cf2015e88dec3e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random: set P2=1 when emitting sixels</title>
<updated>2023-06-29T13:40:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2023-06-27T13:49:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fc46087ce9c451acded2692bcb9064ba7a716e60'/>
<id>urn:sha1:fc46087ce9c451acded2692bcb9064ba7a716e60</id>
<content type='text'>
P2=1 means "empty sixels remain at their current color". This is
usually the case with modern sixel encoders.
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: escape fixes</title>
<updated>2022-10-05T14:53:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-10-04T19:42:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f359a8d6bcad8c7f12c6f707caa7480fd193c92a'/>
<id>urn:sha1:f359a8d6bcad8c7f12c6f707caa7480fd193c92a</id>
<content type='text'>
* Remove ‘:’ escaping only in raw (non-parameterized) sequences
* Double-escape *all* escape characters in parameterized sequences
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: double-escape backslash in ST</title>
<updated>2022-10-05T14:53:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-09-27T17:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fd743b51736e99a097063c1f52c242e5592c298e'/>
<id>urn:sha1:fd743b51736e99a097063c1f52c242e5592c298e</id>
<content type='text'>
Fixes an issue with XTGETTCAP, where escape sequences terminated with
ST, and containing parameters were missing a trailing backslash.
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: add synthetic ‘name’ capability</title>
<updated>2022-09-28T19:09:35Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-09-28T19:09:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=88c3128515832e64fa78a814402e30c1470f6d37'/>
<id>urn:sha1:88c3128515832e64fa78a814402e30c1470f6d37</id>
<content type='text'>
Same as ‘TN’; reports the terminfo name.
</content>
</entry>
<entry>
<title>xtgettcap: switch from a table based internal structure, to a single char array</title>
<updated>2022-01-13T12:42:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-13T12:37:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a032c4c6f6517e664ac7b920c3cfae8d5a25b05'/>
<id>urn:sha1:5a032c4c6f6517e664ac7b920c3cfae8d5a25b05</id>
<content type='text'>
Having the builtin terminfo DB as a table, with one entry per
capability/value pair was ineffective memory-wise - we ended up adding
~20K to the final binary size.

This patch changes the internal representation from a table, to a
single NULL-separated (and NULL-terminated) char array:

  cap1-name \0 cap1-value \0 cap2-name \0 cap2-value \0

The capabilities are still sorted; to lookup a capability we need to
scan from the beginning until we either find a match, or until the
capabilities from the DB sort higher (lexicographically) than the
searched-for capability.

The terminfo char array is 3.3K - more better than before.
</content>
</entry>
<entry>
<title>dcs: xtgettcap: handle boolean capabilities</title>
<updated>2022-01-13T12:42:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-04T21:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=44aad0941fff3e314ae42c3c578cfa6d61913198'/>
<id>urn:sha1:44aad0941fff3e314ae42c3c578cfa6d61913198</id>
<content type='text'>
Reply with DCS 1 + r &lt;cap&gt; ST
</content>
</entry>
<entry>
<title>scripts: generate-builtin-terminfo: add custom capability ‘Co’</title>
<updated>2022-01-13T12:42:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-02T19:22:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7feab6092cf20f2b03f16aa0f147020971268e50'/>
<id>urn:sha1:7feab6092cf20f2b03f16aa0f147020971268e50</id>
<content type='text'>
This is a “special feature”, similar to “TN” and “RGB”:

   Co for termcap colors (or colors for terminfo colors)
</content>
</entry>
<entry>
<title>script: add generate-builtin-terminfo.py</title>
<updated>2022-01-13T12:42:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-01-02T10:06:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b8fc56ecb49e26ab3fcc37fae7565c279fa43b6b'/>
<id>urn:sha1:b8fc56ecb49e26ab3fcc37fae7565c279fa43b6b</id>
<content type='text'>
This script parses a terminfo source file and generates a C header
file with a static struct containing terminfo names and their values.

The table is sorted on the capability names
</content>
</entry>
<entry>
<title>scripts: generate-alt-random: add emoji sequences</title>
<updated>2021-06-24T15:30:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-06-23T16:55:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=34e85e7726fa73c0847058585f94f8d886b14e61'/>
<id>urn:sha1:34e85e7726fa73c0847058585f94f8d886b14e61</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: don’t run TIOCGWINSZ ioctl if --cols and --rows were used</title>
<updated>2021-04-22T09:20:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-22T09:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a9236129f64118b16a76f2aa59c9d9448def2383'/>
<id>urn:sha1:a9236129f64118b16a76f2aa59c9d9448def2383</id>
<content type='text'>
</content>
</entry>
</feed>
