Guide
Task-oriented notes for embedding GhosttyKit in Apple apps. Each page covers one framework or feature.
-
SwiftUI
TerminalViewState,TerminalSurfaceView, lifecycle state, and sending input. -
UIKit & AppKit
Create
TerminalView, assign a controller, attach delegates, and configure native input. -
Host-managed I/O
InMemoryTerminalSessionbridges terminal bytes to a sandbox-safe host backend. -
Themes
Use
GhosttyThemeCatalog, convert themes to terminal config, and switch light/dark variants. - Text Selection Inline touch selection on iOS, the edit menu hooks, and the opt-out.
-
ShellCraftKit
Build a sandboxed command surface backed by
ShellDefinitionandShellSession.