<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/scripts, branch releases/1.15</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.15</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.15'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2023-06-29T13:40:00Z</updated>
<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>
<entry>
<title>generate-alt-random: do ioctl(TIOCGWINSZ) on /dev/tty, not stdout</title>
<updated>2021-04-22T09:00:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-22T09:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=10e512f14f29bbbe3fb34eb4ce6292b201341060'/>
<id>urn:sha1:10e512f14f29bbbe3fb34eb4ce6292b201341060</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: wait for SIGWINCH if width/height is 0</title>
<updated>2021-04-22T08:57:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-22T08:57:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=44b8bd236423d764611bb600739faf8d898ddf1f'/>
<id>urn:sha1:44b8bd236423d764611bb600739faf8d898ddf1f</id>
<content type='text'>
If width/height (that is, the *pixel* values) are 0, that means we are
early (or that foot is slow) - we’ve managed to reach this point
before the foot window has been mapped.

Or rather, before foot has loaded the primary fonts and calculated the
cell geometry. But that, and the initial mapping of the window is
tightly coupled.

To handle this case, detect when width or height is 0, an then wait
for SIGWINCH before trying again.
</content>
</entry>
<entry>
<title>generate-alt-random: assert that lines/cols/width/height are &gt; 0</title>
<updated>2021-04-22T08:57:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-22T08:57:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=da5a3bae3e9a514983d33ad45ea4a3d3bba443b8'/>
<id>urn:sha1:da5a3bae3e9a514983d33ad45ea4a3d3bba443b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: use {width,height} + 1 in randrange()</title>
<updated>2021-04-22T08:56:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-22T08:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=17bc2f507035b9abde2e35e09437040dbf76327e'/>
<id>urn:sha1:17bc2f507035b9abde2e35e09437040dbf76327e</id>
<content type='text'>
When randomizing the sixel width and height, use width/height + 1 in
the call to randrange(). This ensures the width/height is never 0, and
that the maximum width/height is half the window size, not slightly
less than that.
</content>
</entry>
<entry>
<title>scripts: generate-alt-random: reduce number of emitted sixels</title>
<updated>2021-03-14T09:40:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-14T09:40:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=29709c696626ac4a024ae3f5aece8161527bbb56'/>
<id>urn:sha1:29709c696626ac4a024ae3f5aece8161527bbb56</id>
<content type='text'>
After emitting multiple color bands for each sixel row, the increased
amount of sixel data shifted the balance in the profiling data,
causing a performance regression in regular ASCII handling.
</content>
</entry>
<entry>
<title>generate-alt-random: sixel: emit at least 4 color bands</title>
<updated>2021-03-11T16:33:01Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-09T11:02:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a8186351d16f6daba770ddfb0a850fd0f4d11adf'/>
<id>urn:sha1:a8186351d16f6daba770ddfb0a850fd0f4d11adf</id>
<content type='text'>
This fixes an issue where there was a relatively high chance of not
emitting any color bands at all, causing the final image size to be
too small.
</content>
</entry>
<entry>
<title>generate-alt-random: DECGRI: don’t emit zero-length repeat sequences</title>
<updated>2021-03-11T16:33:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-09T11:01:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f3bc5a95b553f41de794db7d3351b79ffcd64efd'/>
<id>urn:sha1:f3bc5a95b553f41de794db7d3351b79ffcd64efd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: DECGRI: random repeat lengths</title>
<updated>2021-03-11T16:33:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-09T10:37:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8ba455f70e0acfaa4ee61fb71a415e796e27dfce'/>
<id>urn:sha1:8ba455f70e0acfaa4ee61fb71a415e796e27dfce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: don’t skip that last partial row</title>
<updated>2021-03-11T16:33:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-09T10:37:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=660a7f9345f83c0ea3b1b92ec98d3ab5cbc06e7e'/>
<id>urn:sha1:660a7f9345f83c0ea3b1b92ec98d3ab5cbc06e7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: emit “Set Raster Attributes” before color definitions</title>
<updated>2021-03-11T16:33:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-09T10:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0bc98877f35ef56e127aecc3df3aff986a4c3c93'/>
<id>urn:sha1:0bc98877f35ef56e127aecc3df3aff986a4c3c93</id>
<content type='text'>
</content>
</entry>
</feed>
