Skip to content

Conversation

@ejohnstown
Copy link
Contributor

@ejohnstown ejohnstown commented Jan 13, 2026

When running the build tests, the terminal size gets set to 0x0. When then tests finish, things like vim start to misbehave until you change your term window size. Do not set the terminal size when running the echoserver in echo mode.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where running build tests causes the terminal size to be set to 0x0, resulting in terminal applications like vim misbehaving until the terminal window is manually resized. The fix prevents terminal size changes when the echoserver is running in echo mode.

Changes:

  • Added conditional check to skip terminal size operations in echo mode
  • Moved wolfSSH_DoModes() call inside the conditional block
  • Updated comment to clarify the behavior applies only when not echoing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ejohnstown ejohnstown force-pushed the fix-test-term-size branch 3 times, most recently from 9fc2192 to 72e6c26 Compare January 13, 2026 19:11
@ejohnstown ejohnstown requested a review from Copilot January 13, 2026 19:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

When running the build tests, the terminal size gets set to 0x0. When
then tests finish, things like vim start to misbehave until you change
your term window size.

1. Echoserver will not change the terminal size when in echo mode.
2. Do not update the modes when the echo server is not in echo mode.
3. Do not set the terminal update callback context when the echo server
   is not in echo mode.
4. Update the guards around the above three items to match the guards for
   the modes update function.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JacobBarthelmeh JacobBarthelmeh merged commit ef44b38 into wolfSSL:master Jan 13, 2026
99 checks passed
@ejohnstown ejohnstown deleted the fix-test-term-size branch January 13, 2026 23:57
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.

2 participants