pacak / bpaf

Command line parser with applicative interface
Apache License 2.0
358 stars 21 forks source link

Adding ANSI colors manually seems to break width calculations #401

Open eugenesvk opened 1 week ago

eugenesvk commented 1 week ago

Following your tips to manually style via direct injection of ANSI colors from this discussion I've noticed that I get word-wrapping much earlier

Before: using literal style

bpaf-before

After: using .bold().blue() style from owo-colors

bpaf-after
pacak commented 1 week ago

Yeah, right now this would break it. I have a plan to make it more flexible :)