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 Long-press requests, viewport snapshots, UTF-16 ranges, and host presentation.
-
ShellCraftKit
Build a sandboxed command surface backed by
ShellDefinitionandShellSession.