moebius icon indicating copy to clipboard operation
moebius copied to clipboard

Line endings for macOS/Unix terminals: A 29-row ansi art has only 6-rows on macOS terminal

Open poetaman opened this issue 1 year ago • 5 comments

It seems there is something missing about line endings or the way lines are broken in ANSI art. It displays correctly in Moebius, but both input and utf8 converted output file has only 6 lines instead of seeming 29 in the art. This leads to incorrect rendering in terminal.

Moebius screenshot:

Screenshot 2022-10-28 at 8 58 23 PM

The way it shows in text editor vim in macOS (only 6 lines): Screenshot 2022-10-28 at 9 25 17 PM

Manually changing the terminal width to 80 characters does the trick (check left vs right): Screenshot 2022-10-28 at 9 04 36 PM

Is there an automated way to get line breaks at 80 characters? I tried some CLI converters but none seem to work.

poetaman avatar Oct 29 '22 04:10 poetaman