<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/scripts/generate-alt-random-writes.py, branch 1.18.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.18.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.18.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2024-03-25T15:33:00Z</updated>
<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-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>
<entry>
<title>generate-alt-random: 50% chance of overwriting the last sixel</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:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a3f2e2220ad0448bddb853eca339962f7d64732a'/>
<id>urn:sha1:a3f2e2220ad0448bddb853eca339962f7d64732a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: emit sixels on the alt screen</title>
<updated>2021-03-11T16:32:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-09T10:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4a86cd7475f43c5bc44c3309a9caa7bd1ee5a453'/>
<id>urn:sha1:4a86cd7475f43c5bc44c3309a9caa7bd1ee5a453</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: emit multiple sixel bands</title>
<updated>2021-03-11T16:32:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-07T16:31:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f8e51fcb178924dd63c2ce185b1b1ab5daa09362'/>
<id>urn:sha1:f8e51fcb178924dd63c2ce185b1b1ab5daa09362</id>
<content type='text'>
This ensures we’re getting the ‘$’ command PGO:d
</content>
</entry>
<entry>
<title>generate-alt-random: sixel: pan/pad must not be 0</title>
<updated>2021-03-11T16:32:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-07T15:52:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=eee216f5feef19ac51c11cd55e64d141f7612a70'/>
<id>urn:sha1:eee216f5feef19ac51c11cd55e64d141f7612a70</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random: sixel: emit DECGRI - Repeat Character</title>
<updated>2021-03-11T16:32:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-06T20:20:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=add30a38f3aaa702c065ed0e267f72371df24313'/>
<id>urn:sha1:add30a38f3aaa702c065ed0e267f72371df24313</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a container</title>
<updated>2020-12-21T12:40:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-21T12:40:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e4ae5a7586cce0ee4efa7f264404dff49f70e87e'/>
<id>urn:sha1:e4ae5a7586cce0ee4efa7f264404dff49f70e87e</id>
<content type='text'>
This _should_ only happen when we’re doing a partial PGO build, since
then the script is run in the parent terminal. In this case, the user
is expected to use --rows/--cols anyway.
</content>
</entry>
</feed>
