<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/scripts/generate-alt-random-writes.py, branch 1.6.4</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.4</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.4'/>
<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/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>
<entry>
<title>generate-alt-random-writes: generate streaks of characters</title>
<updated>2019-08-30T19:37:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-30T19:37:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=77f6c126f55985d17affc04b8552750112ce4f86'/>
<id>urn:sha1:77f6c126f55985d17affc04b8552750112ce4f86</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random-writes: reset SGR and scroll region at the end</title>
<updated>2019-08-23T19:06:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-23T19:06:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6f0e92627e69f8e8b46458ddfa3de17991d2885b'/>
<id>urn:sha1:6f0e92627e69f8e8b46458ddfa3de17991d2885b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random-writes: generate color, scroll and scroll region sequences</title>
<updated>2019-08-22T15:31:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-22T15:31:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f0663c951eb9037c25a3a343e067479546e44b5c'/>
<id>urn:sha1:f0663c951eb9037c25a3a343e067479546e44b5c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>generate-alt-random-writes: script to generate payload for profiling</title>
<updated>2019-08-21T18:01:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-08-21T18:01:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=832f6520d0e1086e11e51cee71dd9e194df833eb'/>
<id>urn:sha1:832f6520d0e1086e11e51cee71dd9e194df833eb</id>
<content type='text'>
</content>
</entry>
</feed>
