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
/
lib
/
at
main
1 folder
8 files
Mitchell Hashimoto
libghostty: add utf-8 grapheme cell getter to C API
2mo ago
3cf01e84
allocator
lib-vt: Wasm SGR helpers and example (#9362) This adds some convenience functions for parsing SGR sequences WebAssembly and adds an example demonstrating SGR parsing in the browser.
9 months ago
allocator.zig
lib-vt: wasm convenience functions and a simple example (#9309) This adds a set of Wasm convenience functions to ease memory management. These are all prefixed with `ghostty_wasm` and are documented as part of the standard Doxygen docs. I also added a very simple single-page HTML example that demonstrates how to use the Wasm module for key encoding. This also adds a bunch of safety checks to the C API to verify that valid values are actually passed to the function. This is an easy to hit bug. **AI disclosure:** The example is AI-written with Amp. I read through all the code and understand it but I can't claim there isn't a better way, I'm far from a JS expert. It is simple and works currently though. Happy to see improvements if anyone wants to contribute.
9 months ago
enum.zig
build: refactor checkGhosttyHEnum to use @hasDecl instead of nested inline for Replace the O(N×M) nested inline for loop with direct @hasDecl lookups. The old approach iterated over all translate-c declarations for each enum field, which required a 10M comptime branch quota on MSVC (2173 decls × 138 fields × ~20 branches). The new approach constructs the expected declaration name and checks directly, reducing to O(N) and needing only 100K quota on all platforms. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 months ago
main.zig
libghostty: add utf-8 grapheme cell getter to C API Add a render-state row-cells getter that encodes the current cell's full grapheme cluster directly as UTF-8 into a caller-provided GhosttyBuffer. The getter writes the base codepoint first, followed by any extra grapheme codepoints, and follows the existing buffer-writer convention where len is bytes written on success or required capacity on GHOSTTY_OUT_OF_SPACE. Previously C consumers could query grapheme codepoints, but bindings that needed UTF-8 text had to reconstruct and encode the cluster themselves. That duplicated terminal internals in downstream bindings and made users pay for awkward cross-language struct handling. By owning the UTF-8/grapheme behavior in libghostty, bindings can use one stable C API and optionally wrap it with small binding-local helpers.
2 months ago
string.zig
gtk: `+new-window` now respects `--working-directory` and `-e` Fixes: #8862 Fixes: #10716 This adds the machinery to pass configuration settings received over DBus down to the GObject Surface so that that configuration information can be used to override some settings from the current "live" config when creating a new window. Currently it's only possible to override `--working-directory` and `--command`. `-e` on the `ghostty +new-window` CLI works as well. Adding more overridable settings is possible, but being able to fully override any possible setting would better be served with a major revamp of how Ghostty handles configs, which I is way out of scope at the moment.
6 months ago
struct.zig
vt: expose render state colors in C API Add a C-facing GhosttyRenderStateColors sized struct and a ghostty_render_state_colors_get accessor so renderers can read background, foreground, cursor color state, and palette data directly from the render state.
5 months ago
target.zig
lib: add a `TaggedUnion` helper to create C ABI compatible tagged unions
9 months ago
types.zig
libghostty: add utf-8 grapheme cell getter to C API Add a render-state row-cells getter that encodes the current cell's full grapheme cluster directly as UTF-8 into a caller-provided GhosttyBuffer. The getter writes the base codepoint first, followed by any extra grapheme codepoints, and follows the existing buffer-writer convention where len is bytes written on success or required capacity on GHOSTTY_OUT_OF_SPACE. Previously C consumers could query grapheme codepoints, but bindings that needed UTF-8 text had to reconstruct and encode the cluster themselves. That duplicated terminal internals in downstream bindings and made users pay for awkward cross-language struct handling. By owning the UTF-8/grapheme behavior in libghostty, bindings can use one stable C API and optionally wrap it with small binding-local helpers.
2 months ago
union.zig
Remove unused imports
8 months ago