summaryrefslogtreecommitdiff
path: root/src/cli/boo.zig
AgeCommit message (Collapse)Author
2025-10-03Zig 0.15: zig build test Mitchell Hashimoto
2025-07-09cli: make the action parser (+foo) generic and reusableMitchell Hashimoto
2025-06-28fix: enable `boo` on FreeBSD-k
2025-02-14cli: disable +boo on non-desktop platforms due to lack of ttyMitchell Hashimoto
2025-02-14cli: add +boo commandTim Culverhouse
Add a `+boo` command to show the animation from the website. The data for the frames is compressed during the build process. This build step was added to the SharedDeps object because it is used in both libghostty and in binaries. The compression is done as follows: - All files are concatenated together using \x01 as a combining byte - The files are compressed to a cached build file - A zig file is written to stdout which `@embedFile`s the compressed file and exposes it to the importer - A new anonymous module "framedata" is added in the SharedDeps object Any file can import framedata and access the compressed bytes via `framedata.compressed`. In the `boo` command, we decompress the file and split it into frames for use in the animation. The overall addition to the binary size is 348k.