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

terminal width is not used when wrapping lines? #27

Open
karenetheridge opened this issue Jul 11, 2018 · 2 comments
Open

terminal width is not used when wrapping lines? #27

karenetheridge opened this issue Jul 11, 2018 · 2 comments

Comments

@karenetheridge
Copy link
Contributor

Usage.pm line 171 (in _split_description) hardcodes 78. Is this really used as the terminal width, with no ability to handle wider terminals?

The way to fix this would be to use $terminal_width instead of 78:

use Term::ReadKey;
my $terminal_width = (GetTerminalSize())[0];
@rjbs
Copy link
Owner

rjbs commented Feb 18, 2021

Will be fixed by #35.

@rjbs
Copy link
Owner

rjbs commented Oct 31, 2021

We're still using 80, because GetTerminalSize is kind of a pain when run not on a real terminal or on certain OSes. Still, the new code is much less awful on 80 wide wrapping…

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

No branches or pull requests

2 participants