diff options
Diffstat (limited to 'docs/ghostty-macos-notes.md')
| -rw-r--r-- | docs/ghostty-macos-notes.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ghostty-macos-notes.md b/docs/ghostty-macos-notes.md index 3974d0d8..830d4b1f 100644 --- a/docs/ghostty-macos-notes.md +++ b/docs/ghostty-macos-notes.md @@ -30,7 +30,7 @@ constant with no Zig tag. This is the single most transferable thing in the repository, it costs about ten lines of build plumbing, and it runs on Linux. pardes now does the same thing in -`src/macos.zig`, extended to compare exported function arity and scalar widths as +`runtime/macos.zig`, extended to compare exported function arity and scalar widths as well, because a hand-written header drifts in signatures too. ## Zig→host is one callback, not N @@ -56,7 +56,7 @@ comptime { The payoff is that adding a feature adds an enum case, not a struct field: hosts that do not implement it return `false` and the ABI never changed. Worth copying the day a fixed callback list starts growing. pardes has three callbacks today -— `wakeup`, `set_clipboard`, `read_clipboard` (`Runtime` in `src/macos.zig:153`) +— `wakeup`, `set_clipboard`, `read_clipboard` (`Runtime` in `runtime/macos.zig:153`) — and does not need it yet. Two userdata scopes, worth noting: the runtime struct's `userdata` is @@ -102,7 +102,7 @@ there Swift owns an `MTKView` and passes a command buffer *into* Zig (`ghostty_inspector_metal_render`, `macos/Sources/Ghostty/Surface View/InspectorView.swift:417`). pardes inverts this deliberately — see `docs/macos.md`. The short version: a -terminal grid rendered by a hand-written Metal atlas is what `src/gui/gui.zig` +terminal grid rendered by a hand-written Metal atlas is what `dev/gui/gui.zig` already spends thousands of lines on, and a cell grid is exactly what CoreText draws natively. |
