📣 Just published: reflow, a #golang package that lets you word-wrap strings or entire blocks of text.
It conveniently follows the io.Writer / io.WriteCloser interface and supports ANSI escape sequences. This means you can style your terminal output without it affecting the word-wrapping algorithm!
@fribbledom !!! Thank you! This is super useful.
@fribbledom Even the ones for moving the cursor?
No. I should have been more explicit here. Moving the cursor will break it, but it does support all the styling sequences.
@fribbledom nice job. reminds me of working with MUDs in the 90s.
Should do one for argument parsing that accepts quotes, brackets and numbered indexing lol
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!