-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
MacOS 10.13.6 Console.SetWindowSize() exception #27216
Comments
.NET Core 2.1 is supported on macOS, but there are a limited number of APIs that don't work because of platform limitations, and Console.SetWindowSize is one of them, hence the exception. @terrajobst or @mairaw can probably comment on the best way tooling or docs could be updated to reflect this, but at present there's no bug here in the implementation; it's by design that it throws PlatformNotSupportedException. |
note that I get same result on Linux. there is ioctl(TIOCSWINSZ) but that is generally informational. |
I understand that this will be a pretty low priority, as there really arent that many use cases for setting the console size, but I'd love to see this functionality implemented on Linux, if possible. |
this problem has resolve? |
it can't resolve? |
help |
urgent |
Are you on 2.1 @junzhou98? 2.1 support will expire in ~ month. Just catch the exception if you cannot avoid the call. |
I assume there is the same exception for Linux/Docker P.S. related breadbyte/ConsoleInteractive#9 |
The issue got fixed by #75824, which is included in .NET 8. Some OSes still don't support it, but there is nothing we can do about it: |
I'm opening this on behalf of a user from VS Feedback. https://developercommunity.visualstudio.com/content/problem/318400/macos-10136-consolesetwindowsize-exception.html
dotnet core 2.1 document say support macos
code:
The text was updated successfully, but these errors were encountered: