aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate-alt-random-writes.py (follow)
Commit message (Collapse)AuthorAgeLines
* scripts: generate-alt-random: reduce number of emitted sixelsDaniel Eklöf2021-03-14-1/+1
| | | | | | 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.
* generate-alt-random: sixel: emit at least 4 color bandsDaniel Eklöf2021-03-11-1/+1
| | | | | | 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.
* generate-alt-random: DECGRI: don’t emit zero-length repeat sequencesDaniel Eklöf2021-03-11-3/+3
|
* generate-alt-random: DECGRI: random repeat lengthsDaniel Eklöf2021-03-11-1/+5
|
* generate-alt-random: don’t skip that last partial rowDaniel Eklöf2021-03-11-2/+3
|
* generate-alt-random: emit “Set Raster Attributes” before color definitionsDaniel Eklöf2021-03-11-4/+4
|
* generate-alt-random: 50% chance of overwriting the last sixelDaniel Eklöf2021-03-11-6/+14
|
* generate-alt-random: emit sixels on the alt screenDaniel Eklöf2021-03-11-2/+5
|
* generate-alt-random: emit multiple sixel bandsDaniel Eklöf2021-03-11-10/+17
| | | | This ensures we’re getting the ‘$’ command PGO:d
* generate-alt-random: sixel: pan/pad must not be 0Daniel Eklöf2021-03-11-1/+1
|
* scripts: generate-alt-random: sixel: emit DECGRI - Repeat CharacterDaniel Eklöf2021-03-11-5/+6
|
* generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a containerDaniel Eklöf2020-12-21-5/+14
| | | | | | 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.
* generate-alt-random: override detected width/height when --cols/--rows have been usedDaniel Eklöf2020-12-20-0/+2
| | | | | This ensures we have a valid width and height, that matches what the PGO helper binary expects.
* generate-alt-random: fix “new style” cube escapeDaniel Eklöf2020-12-20-1/+1
| | | | It’s “38:5:<idx>”, not “38:2:5:<idx>”.
* generate-alt-random-writes: use python random, allow setting a seedsterni2020-12-20-99/+101
| | | | | | | | | | | | | | | | | | | 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 >= 3.9, switching to this in the future will impact output) * list[rand.read(1) % len(list)] → random.choice(list)
* scripts: generate-alt-random-writes: add --sixelDaniel Eklöf2020-11-24-1/+48
| | | | | When --sixel is specified, we generate random sixel images in the ‘normal’ screen, after exiting the alt screen.
* scripts: generate-alt-random-writes: add unicode and multi-column charsDaniel Eklöf2020-11-22-1/+1
|
* scripts: generate-alt-random-writes: add support for bold/italic/underlineDaniel Eklöf2020-11-22-0/+10
|
* scripts: generate-alt-random-writes: don’t always reset all attributesDaniel Eklöf2020-11-22-4/+5
|
* scripts: generate-alt-random-writes: mix \e[S with \nDaniel Eklöf2020-11-22-1/+5
|
* scripts: generate-alt-random-writes: add support for emitting 256-indexed colorsDaniel Eklöf2020-11-22-0/+15
|
* scripts: generate-alt-random-writes: mix new/old-style RGB escapesDaniel Eklöf2020-11-22-1/+8
|
* scripts: generate-alt-random-writes: add command line arguments for cols/rowsDaniel Eklöf2020-11-22-0/+7
|
* scripts: generate-alt-random-writes: don’t re-use ‘count’ variableDaniel Eklöf2020-11-22-2/+2
|
* scripts/generate-alt-random-writes: use TIOCGWINSZ instead of shutilDaniel Eklöf2020-03-08-4/+8
|
* script: generate-alt-random: reduce output sizeDaniel Eklöf2019-12-19-1/+1
|
* generate-alt-random-writes: reduce output sizeDaniel Eklöf2019-09-20-1/+1
|
* generate-alt-random-writes: generate streaks of charactersDaniel Eklöf2019-08-30-1/+4
|
* generate-alt-random-writes: reset SGR and scroll region at the endDaniel Eklöf2019-08-23-2/+2
|
* generate-alt-random-writes: generate color, scroll and scroll region sequencesDaniel Eklöf2019-08-22-11/+72
|
* generate-alt-random-writes: script to generate payload for profilingDaniel Eklöf2019-08-21-0/+35