feat: Add libghostty terminal backend (GPU-accelerated via Metal)#4
Open
feat: Add libghostty terminal backend (GPU-accelerated via Metal)#4
Conversation
Adds an experimental Ghostty terminal backend as an alternative to SwiftTerm. Ghostty uses libghostty for GPU-accelerated Metal rendering. Features: - GPU-accelerated terminal rendering via Metal - Full keyboard/mouse input support - IME (Input Method Editor) support - Clipboard integration - Title and PWD change notifications Implementation: - GhosttyApp: Singleton managing the libghostty app instance - GhosttySurface: Wrapper for individual terminal sessions - GhosttySurfaceView: NSView subclass handling rendering/input - GhosttyTerminalView: SwiftUI wrapper for integration - GhosttyInput: Key/mouse event translation - GhosttyConfig: Configuration management Setup: The GhosttyKit static library (~130MB) is not included due to size. Run `./scripts/setup-ghostty.sh` to build it, or see CodeEdit/Frameworks/GhosttyKit.xcframework/README.md Usage: 1. Run setup script to get libghostty 2. Build CodeEdit 3. Settings → Terminal → Experimental → Enable "Use Ghostty Backend" 4. Restart CodeEdit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an experimental GPU-accelerated terminal backend using libghostty as an alternative to SwiftTerm.
New Files
CodeEdit/Features/TerminalEmulator/Ghostty/CodeEdit/Frameworks/GhosttyKit.xcframework/scripts/setup-ghostty.shSetup Required
The static library (~130MB) is not included in the repo due to GitHub size limits. To test:
Usage
libghostty-fat.aTest plan
🤖 Generated with Claude Code