<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/scripts, branch releases/1.6</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.6</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.6'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-12-21T12:42:59Z</updated>
<entry>
<title>generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a container</title>
<updated>2020-12-21T12:42:59Z</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=68dd9c17d5d3aeaa8196d5e31256ccb95429ac2e'/>
<id>urn:sha1:68dd9c17d5d3aeaa8196d5e31256ccb95429ac2e</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>
<entry>
<title>generate-alt-random: override detected width/height when --cols/--rows have been used</title>
<updated>2020-12-20T14:46:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T14:36:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e12a9347dd00ccf49e810667c7b0c0e268dbbfaf'/>
<id>urn:sha1:e12a9347dd00ccf49e810667c7b0c0e268dbbfaf</id>
<content type='text'>
This ensures we have a valid width and height, that matches what the
PGO helper binary expects.
</content>
</entry>
<entry>
<title>generate-alt-random: fix “new style” cube escape</title>
<updated>2020-12-20T14:46:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-20T14:27:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=983f474ec8c02e0f50dc84153748445982498411'/>
<id>urn:sha1:983f474ec8c02e0f50dc84153748445982498411</id>
<content type='text'>
It’s “38:5:&lt;idx&gt;”, not “38:2:5:&lt;idx&gt;”.
</content>
</entry>
<entry>
<title>generate-alt-random-writes: use python random, allow setting a seed</title>
<updated>2020-12-20T14:46:40Z</updated>
<author>
<name>sterni</name>
<email>sternenseemann@systemli.org</email>
</author>
<published>2020-12-20T13:45:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d1735ffb6da3b867ceda83fa89648a664a5dafd1'/>
<id>urn:sha1:d1735ffb6da3b867ceda83fa89648a664a5dafd1</id>
<content type='text'>
Using Python's own PRNG should make the code cleaner and allow for
reproducible stimulus files if that is desired via setting --seed (at
least for the same versions of the script, changing the kind and/or
order of the random calls will of course impact the output in the
future).

I did the following substitutions:

* rand.read(1)[0] % n and struct.unpack('@H', rand.read(2))[0] % n →
  random.randrange(n)
* rand.read(1)[0] → random.randrange(256)
* rand.read(n) → [random.randrange(256) for _ in range(n)]
  (better alternative would have been random.randbytes(n), but is only
  available for Python &gt;= 3.9, switching to this in the future will
  impact output)
* list[rand.read(1) % len(list)] → random.choice(list)
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: add --sixel</title>
<updated>2020-11-24T20:31:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-23T18:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d2f0b82bdaa9ca87fdec0f3fd99b659e5ed21a5f'/>
<id>urn:sha1:d2f0b82bdaa9ca87fdec0f3fd99b659e5ed21a5f</id>
<content type='text'>
When --sixel is specified, we generate random sixel images in the
‘normal’ screen, after exiting the alt screen.
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: add unicode and multi-column chars</title>
<updated>2020-11-22T18:29:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-16T19:22:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=96db338262a850a9aec4f6c1d04e4ea601be3467'/>
<id>urn:sha1:96db338262a850a9aec4f6c1d04e4ea601be3467</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: add support for bold/italic/underline</title>
<updated>2020-11-22T18:29:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-16T19:02:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b437013a3b7968a4f211d55725e4e0e406edb076'/>
<id>urn:sha1:b437013a3b7968a4f211d55725e4e0e406edb076</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: don’t always reset all attributes</title>
<updated>2020-11-22T18:29:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-16T19:02:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=60c86372310c96759334fc6c0a5c46b729b470f9'/>
<id>urn:sha1:60c86372310c96759334fc6c0a5c46b729b470f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: mix \e[S with \n</title>
<updated>2020-11-22T18:29:43Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-16T19:01:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1e1fb157dc5762f571d8e39e837c010ef9aaf45b'/>
<id>urn:sha1:1e1fb157dc5762f571d8e39e837c010ef9aaf45b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: add support for emitting 256-indexed colors</title>
<updated>2020-11-22T18:29:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-15T13:00:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c679da7316d1b032e94347edc1841072f779670b'/>
<id>urn:sha1:c679da7316d1b032e94347edc1841072f779670b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: mix new/old-style RGB escapes</title>
<updated>2020-11-22T18:29:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-15T12:59:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5aa97189df3a6816d39041e974396deda9a01c49'/>
<id>urn:sha1:5aa97189df3a6816d39041e974396deda9a01c49</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: add command line arguments for cols/rows</title>
<updated>2020-11-22T18:29:42Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-15T12:49:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=66527b39b1ed9bfd4b88199def998389142fda54'/>
<id>urn:sha1:66527b39b1ed9bfd4b88199def998389142fda54</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: generate-alt-random-writes: don’t re-use ‘count’ variable</title>
<updated>2020-11-22T18:28:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-14T12:46:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2639e7d2e2cd4fe2901fa3043261523c6a75daf8'/>
<id>urn:sha1:2639e7d2e2cd4fe2901fa3043261523c6a75daf8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>scripts: benchmarking utility script</title>
<updated>2020-05-31T10:43:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-31T10:43:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a4b1c09d582d1efda123bee7c96cd571bc2cc32d'/>
<id>urn:sha1:a4b1c09d582d1efda123bee7c96cd571bc2cc32d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unicode-precompose: use fcft's precompose functionality</title>
<updated>2020-05-09T10:06:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-08T21:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b1b32152c182fdb0b9494e75acb605d0486e30fa'/>
<id>urn:sha1:b1b32152c182fdb0b9494e75acb605d0486e30fa</id>
<content type='text'>
This allows us more options when determining whether to use a
pre-composed character or not:

We now only use the pre-composed character if it's from the primary
font, or if at least one of the base or combining characters are from
a fallback font.

I.e. use glyphs from the primary font if possible. But, if one or more
of the decomposed glyphs are from a fallback font, use the
pre-composed character anyway.
</content>
</entry>
<entry>
<title>script: generate-unicode-precompose: generate a complete header file</title>
<updated>2020-05-02T16:25:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-02T16:25:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a24a3520c7e0230b0b3b853db0cb2871427d1ab4'/>
<id>urn:sha1:a24a3520c7e0230b0b3b853db0cb2871427d1ab4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unicode-combine: remove utf8proc dependency</title>
<updated>2020-05-02T15:29:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-02T15:29:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d945b68b734427a03d114716ff8aeac7998a7c57'/>
<id>urn:sha1:d945b68b734427a03d114716ff8aeac7998a7c57</id>
<content type='text'>
We only used utf8proc to try to pre-compose a glyph from a base and
combining character.

We can do this ourselves by using a pre-compiled table of valid
pre-compositions. This table isn't _that_ big, and binary searching it
is fast.

That is, for a very small amount of code, and not too much extra RO
data, we can get rid of the utf8proc dependency.
</content>
</entry>
<entry>
<title>scripts/generate-alt-random-writes: use TIOCGWINSZ instead of shutil</title>
<updated>2020-03-08T12:52:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-08T12:52:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3bc6db1e8cc886642660b20547ff5d6af739a3c2'/>
<id>urn:sha1:3bc6db1e8cc886642660b20547ff5d6af739a3c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>script: generate-alt-random: reduce output size</title>
<updated>2019-12-19T19:01:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-19T19:01:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5001dd844ec5a81599d2d56551f597bc39149ebf'/>
<id>urn:sha1:5001dd844ec5a81599d2d56551f597bc39149ebf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random-writes: reduce output size</title>
<updated>2019-09-20T20:39:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-09-20T20:39:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ce4d2a085a7fc9862459515d1b43dd2b1de283e2'/>
<id>urn:sha1:ce4d2a085a7fc9862459515d1b43dd2b1de283e2</id>
<content type='text'>
</content>
</entry>
</feed>
