example

command
v0.0.0-...-fa1fa1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

agent-wrapper demo: runs `top` in a headless PTY, waits for it to render, prints a screen snapshot, then sends Esc to exit.

Note on "does the terminal go back to a shell?": We launch `top` directly — there is no shell underneath. When top exits, the PTY slave closes, readLoop returns, and <-done fires. The Term is done. If you want a shell prompt after top, wrap it: RunCommand(["bash","-c","top"]).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL