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"]).
Click to show internal directories.
Click to hide internal directories.