Replies: 1 comment 1 reply
-
It doesn't currently measure widths correctly (#1973), and fixing that may require lookup tables that would then cause the package to grow more than is desired for some applications. If a string wrapping API is made public, then I think it should be defined with a delegate, interface, or abstract class, so that
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When building CLI apps, wrapping large text to fit the
Console.WindowWidth
is a common requirement. It would be nice if an API likeHelpBuilder.WrapText(string text, int maxWidth)
would be publicly accessible for reuse.command-line-api/src/System.CommandLine/Help/HelpBuilder.cs
Line 319 in 436f973
If there's another API to do that, please point me in the right direction, thanks!
Beta Was this translation helpful? Give feedback.
All reactions