Skip to content

Conversation

o-sdn-o
Copy link

@o-sdn-o o-sdn-o commented Oct 4, 2025

PR Summary

Fix the long-known issue of duplicate output

  • Fix the SIGWINCH interrupt makes the write operation think its failed, and causes it to try again.
  • Remove the workaround with ignoring the first WINDOW_BUFFER_SIZE_EVENT event. Prevent duplicated login message #426

PR Context

x-link directvt/vtm#819 (comment)

When a window resize event is received, the errno becomes EINTR which causes the write operation think its failed (some terminals generate this resize event when switching between alternate/normal buffer mode, etc).

Fixes PowerShell/Win32-OpenSSH#2275.

Related to:

I can guess why this fix might be delayed in merging: #674 (comment)

…, and causes it to try again.

xlink directvt/vtm#819 (comment)

> When a window resize event is received (terminal generates WINDOW_BUFFER_SIZE_EVENT event when switching between alternate/normal buffer mode), the errno becomes EINTR which causes the write operation think its failed.

potentially fixes PowerShell/Win32-OpenSSH#2275
@o-sdn-o
Copy link
Author

o-sdn-o commented Oct 4, 2025

@microsoft-github-policy-service agree

@tgauth
Copy link
Collaborator

tgauth commented Oct 6, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@boomshankerx
Copy link

This is infuriating. It's interrupting my entire workflow. Please make this a priority.

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.

Strange character sequences (ANSI escape sequences?) leaking into shell prompt when starting/attaching Tmux

3 participants