PTY Attach Checklist
Use this checklist when validating PTY-backed attach behavior in cmdraui or cmdractl.
Core shell checks
- Start a PTY-backed shell session.
- Attach to it.
- Verify the shell prompt appears immediately.
- Type a short command and confirm normal echo:
echo hello
- Test line editing:
- type a long command
- use left/right arrows
- use backspace
- use
ctrl+aandctrl+e
- Test history navigation:
- run two commands
- use up/down arrows
- Test a clear/redraw:
- Unix:
clear - Windows:
cls
- Unix:
- Resize the local terminal smaller and larger.
- Verify the remote PTY size updates:
- Unix:
stty size - Windows PowerShell:
$Host.UI.RawUI.WindowSize
- Unix:
Attach lifecycle checks
- Detach with
ctrl+g q. - Reattach and confirm the session is still usable.
- Cancel with
ctrl+g c. - Confirm the attached process exits and
cmdrauireturns to the normal 3-pane view. - Start another session and let the shell exit normally.
- Confirm
cmdrauikeeps the exited attach view visible until you detach explicitly.
PTY app checks
These are not expected to be perfect yet. They help identify the next missing terminal behaviors.
- Unix:
less README.mdvim README.mdtoporhtop
- Windows:
more README.mdpowershellcmd
Record whether the issue is primarily:
- input handling
- cursor motion
- erase/redraw
- wrapping
- resize
- alternate screen
- color/style
Comparison check
If a PTY issue appears in cmdraui, repeat the same session with cmdractl attach.
- If it reproduces in both, the issue is likely in the server/PTTY path.
- If it only reproduces in
cmdraui, the issue is likely in the TUI emulator path.