http://qs1969.pair.com?node_id=11143755


in reply to Re^2: Text::ANSI::Util for wrapping "colorful" text
in thread Text::ANSI::Util for wrapping "colorful" text

Yes, it does. But, unless you want to familiarize yourself with "patching" (please do, either now or at leisure), in this trivial case: if as I understand you have the distribution already installed, it's a matter of simple replacement of just 2 lines in a text editor. Third line edit, in "patch", is to pacify a (dubious -- I hope Perlancar would agree) test during installation. Just make a backup copy and edit BaseUtil.pm. Task at hand is kind of borderline in whether sticking to maxima "do not re-invent the wheel" would ultimately benefit you or not. Maybe you'll later encounter unexpected cases of "wrapping text" foreseen by Perlancar many years ago, but not by you with home-made implementation. Maybe not. Sorry for mentoring :)

Replies are listed 'Best First'.
Re^4: Text::ANSI::Util for wrapping "colorful" text
by ibm1620 (Friar) on May 10, 2022 at 21:32 UTC
    Okay, I stumbled through and ran patch successfully, plus make/make test/make install. It passes all of my tests.

    I put in a bug report. Please let me know if it can be improved.

    Thanks!