Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to call tput to get console size if System.Console.BufferWidth/WindowHeight fails #1190

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Frassle
Copy link
Contributor

@Frassle Frassle commented Mar 6, 2023

Fixes #216

This fixes size issues on console such as mintty on Windows.

Before:
image

After:
image

It's a little surprising that System.Console doesn't do this already, but it's only a small bit of workaround code to get much nicer sizing on these terminals.


Please upvote 👍 this pull request if you are interested in it.

…ndowHeight fails

This fixes size issues on console such as mintty on Windows.
@github-actions github-actions bot added the ⭐ top pull request Top pull request. label Apr 24, 2024
@github-actions github-actions bot removed the ⭐ top pull request Top pull request. label May 10, 2024
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.

Width detection fails when running Windows apps in WSL
1 participant