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

Fixing DisplayWidth for newer Mono #279

Conversation

Oddley
Copy link

@Oddley Oddley commented Apr 23, 2018

ParserSettings and HelpText assume that Console.WindowWidth throws for non-Windows environments, but this is not true in more recent versions of Mono (returns 0 instead). This change will cause it to default to DefaultMaximumLength in the event that Console.WindowWidth returns 0.

…r non-Windows environments, but this is not true in more recent versions of Mono (returns 0 instead). This change will cause it to default to DefaultMaximumLength in the event that Console.WindowWidth returns 0.
@Oddley
Copy link
Author

Oddley commented Apr 23, 2018

I'm fairly certain this fixes #277. The issue I was seeing and the issue described are extremely similar.

Copy link
Member

@ericnewton76 ericnewton76 left a comment

Choose a reason for hiding this comment

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

makes sense! thanks

@ericnewton76 ericnewton76 added this to the 2.3.0 milestone May 11, 2018
@ericnewton76 ericnewton76 merged commit f77719b into commandlineparser:develop May 11, 2018
@Oddley
Copy link
Author

Oddley commented Jun 25, 2018

@ericnewton76 Any ETA for when 2.3.0 is getting released? I have a project that would benefit from it.

@Oddley Oddley deleted the user/Oddley/fixMonoConsoleWidthSupport branch July 10, 2018 22:13
@chsalgado
Copy link

Hi, we are consuming this package as it is a great multiplat option, however, we have been affected by this bug when running inside a Linux container, I think this PR would address our issues and would like to know if there is any ETA to ship it, as 2.3.0 came and go without it.

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.

3 participants