Skip to content

Consider os.Stdout when determining terminal size during container exec - #11

Merged
BenasB merged 1 commit into
mainfrom
9_windows_container_exec
Jul 10, 2025
Merged

Consider os.Stdout when determining terminal size during container exec#11
BenasB merged 1 commit into
mainfrom
9_windows_container_exec

Conversation

@BenasB

@BenasB BenasB commented Jul 10, 2025

Copy link
Copy Markdown
Owner

closes #9

On windows, os.Stdin was not suitable for term.GetSize, however os.Stdout reports the size correctly.

If we fail to determine the size based on os.Stdin, try os.Stdout before returning an error to the user

@BenasB
BenasB merged commit 00f0da9 into main Jul 10, 2025
17 checks passed
@BenasB
BenasB deleted the 9_windows_container_exec branch July 10, 2025 19:00
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.

container exec not working on Windows Git Bash and Powershell

1 participant