Skip to main content

@svatah/yam-adapter-process

Process and pseudo-terminal adapter

Exports

ExportKindSignature
createProcessSurfacefunctionexport function createProcessSurface(config: Config): ProcessSurface
openPtyfunctionexport function openPty(options: PtyOptions & { allocator?: "expect" | "python3" }): PtyOpen a pseudo-terminal running the command.
PROCESS_ADAPTERvariablePROCESS_ADAPTER = "process"
ProcessSurfaceclassexport class ProcessSurface implements AgentSurface
ProcessSurfaceOptionsinterfaceexport interface ProcessSurfaceOptions
Ptyinterfaceexport interface Pty
PtyOptionsinterfaceexport interface PtyOptions
ptyReadinessfunctionexport function ptyReadiness(prefer?: "expect" | "python3"): PtyReadinessWhether this host can allocate a pseudo-terminal, and with what.
PtyReadinessinterfaceexport interface PtyReadiness
registerProcessAdapterfunctionexport function registerProcessAdapter(): void
Screenclassexport class ScreenA bounded grid of characters, and a cursor.
ScreenSizeinterfaceexport interface ScreenSize