Guide
Task-oriented integration notes for embedding GhosttyKit in Apple apps. Each page maps directly to a product or workflow.
-
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 Long-press requests, viewport snapshots, UTF-16 ranges, and host presentation.
-
ShellCraftKit
Build a sandboxed command surface backed by
ShellDefinitionandShellSession.