Skip to content

fix: preserve PTY output for Windows SSH sessions#20

Open
sitiom wants to merge 1 commit intoxhcoding:mainfrom
sitiom:fix-sshpass-arrow-key
Open

fix: preserve PTY output for Windows SSH sessions#20
sitiom wants to merge 1 commit intoxhcoding:mainfrom
sitiom:fix-sshpass-arrow-key

Conversation

@sitiom
Copy link
Copy Markdown
Contributor

@sitiom sitiom commented Apr 9, 2026

sshpass-win32 suppresses child PTY output while scanning for authentication prompts. That prevented terminal control sequences from reaching the local console during session setup, leaving Windows OpenSSH in the wrong input mode and sending interactive keys such as Up/Down/Left/Right as literal sequences like [A and [C.

  • Always pass child PTY output through to stdout instead of hiding it during prompt detection.
  • Keep password prompt hiding with a minimal output filter, rather than suppressing PTY output wholesale.
  • Revert to forwarding stdin to the child PTY as raw bytes using ReadFile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant