alpha
Login
or
Join now
ptr.pet
/
ghostty
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ghostty
/
src
/
build
/
framegen
/
at
main
1 folder
1 file
Alessandro De Blasis
build: fix Windows build failures in helpgen and framegen
6mo ago
f9d3b1aa
frames
cli: add +boo command 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.
2 years ago
main.c
build: fix Windows build failures in helpgen and framegen Use writerStreaming() instead of writer() for stdout in helpgen and main_build_data. The positional writer calls setEndPos/ftruncate in end(), which fails on Windows because ftruncate on pipes maps INVALID_PARAMETER to FileTooBig. Replace scandir with opendir/readdir plus qsort in framegen since scandir is a POSIX extension not available on Windows. This was previously applied and reverted upstream (f4998c6ab, 0fdddd5bc) as collateral from an unrelated example-execution hang that has since been resolved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6 months ago