| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2026-07-26 | scripts: various ruff fixes | Daniel Eklöf | -3/+1 | |
| * ruff 0.16.0 * python 3.14.6 | ||||
| 2025-12-26 | scripts: mypy fixes | Daniel Eklöf | -5/+18 | |
| 2024-03-25 | scripts: generate-alt-random: generate both opaque and transparent sixels | Daniel Eklöf | -2/+3 | |
| 2023-06-29 | scripts: generate-alt-random: set P2=1 when emitting sixels | Daniel Eklöf | -2/+2 | |
| P2=1 means "empty sixels remain at their current color". This is usually the case with modern sixel encoders. | ||||
| 2021-06-24 | scripts: generate-alt-random: add emoji sequences | Daniel Eklöf | -1/+1 | |
| 2021-04-22 | generate-alt-random: don’t run TIOCGWINSZ ioctl if --cols and --rows were used | Daniel Eklöf | -24/+25 | |
| 2021-04-22 | generate-alt-random: do ioctl(TIOCGWINSZ) on /dev/tty, not stdout | Daniel Eklöf | -5/+6 | |
| 2021-04-22 | generate-alt-random: wait for SIGWINCH if width/height is 0 | Daniel Eklöf | -6/+24 | |
| 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. | ||||
| 2021-04-22 | generate-alt-random: assert that lines/cols/width/height are > 0 | Daniel Eklöf | -0/+5 | |
| 2021-04-22 | generate-alt-random: use {width,height} + 1 in randrange() | Daniel Eklöf | -1/+1 | |
| 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. | ||||
| 2021-03-14 | scripts: generate-alt-random: reduce number of emitted sixels | Daniel Eklöf | -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. | ||||
| 2021-03-11 | generate-alt-random: sixel: emit at least 4 color bands | Daniel Eklöf | -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. | ||||
| 2021-03-11 | generate-alt-random: DECGRI: don’t emit zero-length repeat sequences | Daniel Eklöf | -3/+3 | |
| 2021-03-11 | generate-alt-random: DECGRI: random repeat lengths | Daniel Eklöf | -1/+5 | |
| 2021-03-11 | generate-alt-random: don’t skip that last partial row | Daniel Eklöf | -2/+3 | |
| 2021-03-11 | generate-alt-random: emit “Set Raster Attributes” before color definitions | Daniel Eklöf | -4/+4 | |
| 2021-03-11 | generate-alt-random: 50% chance of overwriting the last sixel | Daniel Eklöf | -6/+14 | |
| 2021-03-11 | generate-alt-random: emit sixels on the alt screen | Daniel Eklöf | -2/+5 | |
| 2021-03-11 | generate-alt-random: emit multiple sixel bands | Daniel Eklöf | -10/+17 | |
| This ensures we’re getting the ‘$’ command PGO:d | ||||
| 2021-03-11 | generate-alt-random: sixel: pan/pad must not be 0 | Daniel Eklöf | -1/+1 | |
| 2021-03-11 | scripts: generate-alt-random: sixel: emit DECGRI - Repeat Character | Daniel Eklöf | -5/+6 | |
| 2020-12-21 | generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a container | Daniel Eklöf | -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. | ||||
| 2020-12-21 | generate-alt-random: ioctl(TIOCGWINSZ) may fail in run inside a container | Daniel Eklöf | -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. | ||||
| 2020-12-20 | generate-alt-random: override detected width/height when --cols/--rows have been used | Daniel Eklöf | -0/+2 | |
| This ensures we have a valid width and height, that matches what the PGO helper binary expects. | ||||
| 2020-12-20 | generate-alt-random: fix “new style” cube escape | Daniel Eklöf | -1/+1 | |
| It’s “38:5:<idx>”, not “38:2:5:<idx>”. | ||||
| 2020-12-20 | generate-alt-random-writes: use python random, allow setting a seed | sterni | -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) | ||||
| 2020-12-20 | generate-alt-random: override detected width/height when --cols/--rows have been used | Daniel Eklöf | -0/+2 | |
| This ensures we have a valid width and height, that matches what the PGO helper binary expects. | ||||
| 2020-12-20 | generate-alt-random: fix “new style” cube escape | Daniel Eklöf | -1/+1 | |
| It’s “38:5:<idx>”, not “38:2:5:<idx>”. | ||||
| 2020-12-20 | generate-alt-random-writes: use python random, allow setting a seed | sterni | -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) | ||||
| 2020-11-24 | scripts: generate-alt-random-writes: add --sixel | Daniel Eklöf | -1/+48 | |
| When --sixel is specified, we generate random sixel images in the ‘normal’ screen, after exiting the alt screen. | ||||
| 2020-11-22 | scripts: generate-alt-random-writes: add unicode and multi-column chars | Daniel Eklöf | -1/+1 | |
| 2020-11-22 | scripts: generate-alt-random-writes: add support for bold/italic/underline | Daniel Eklöf | -0/+10 | |
| 2020-11-22 | scripts: generate-alt-random-writes: don’t always reset all attributes | Daniel Eklöf | -4/+5 | |
| 2020-11-22 | scripts: generate-alt-random-writes: mix \e[S with \n | Daniel Eklöf | -1/+5 | |
| 2020-11-22 | scripts: generate-alt-random-writes: add support for emitting 256-indexed colors | Daniel Eklöf | -0/+15 | |
| 2020-11-22 | scripts: generate-alt-random-writes: mix new/old-style RGB escapes | Daniel Eklöf | -1/+8 | |
| 2020-11-22 | scripts: generate-alt-random-writes: add command line arguments for cols/rows | Daniel Eklöf | -0/+7 | |
| 2020-11-22 | scripts: generate-alt-random-writes: don’t re-use ‘count’ variable | Daniel Eklöf | -2/+2 | |
| 2020-10-10 | selection: use appropriate check for PRIMARY paste | Sergey Nazaryev | -210/+45 | |
| Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD. | ||||
| 2020-03-08 | scripts/generate-alt-random-writes: use TIOCGWINSZ instead of shutil | Daniel Eklöf | -4/+8 | |
| 2019-12-19 | script: generate-alt-random: reduce output size | Daniel Eklöf | -1/+1 | |
| 2019-09-20 | generate-alt-random-writes: reduce output size | Daniel Eklöf | -1/+1 | |
| 2019-08-30 | generate-alt-random-writes: generate streaks of characters | Daniel Eklöf | -1/+4 | |
| 2019-08-23 | generate-alt-random-writes: reset SGR and scroll region at the end | Daniel Eklöf | -2/+2 | |
| 2019-08-22 | generate-alt-random-writes: generate color, scroll and scroll region sequences | Daniel Eklöf | -11/+72 | |
| 2019-08-21 | generate-alt-random-writes: script to generate payload for profiling | Daniel Eklöf | -0/+35 | |
