-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line endings for macOS/Unix terminals: A 29-row ansi art has only 6-rows on macOS terminal #215
Comments
Steps I used to convert for utf-8 format:
|
Check my first hand-edited version is now available for modern terminal emulators (colors depend on terminal colors): poetaman/arttime@153cd08#commitcomment-88263554 An ideal and concise spec for outputting ANSI for modern terminal emulators would be:
Am not suggesting Moebius to not do what it does today, additionally implementing an export option that follows the spec above will make it easy to use ANSI art in modern terminal emulator based applications. Terminal emulators are the most natural home for ANSI. |
a terminal width of 80 columns is assumed unless specified otherwise (SAUCE). if you want to display on wider terminals, you need to parse the escape codes and wrap the lines yourself. This is not a Moebius specific item, most if not all editors assumes a terminal width of 80. |
I committed a (possible) fix in the repo some time ago, but didn't build a new release that wrote implied line endings (line feed only) when exporting at utf-8, because I presume this is what most people expect. |
@andyherbert Nice, I would totally give it a try after your upcoming build is released. Btw, request
|
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:
The way it shows in text editor vim in macOS (only 6 lines):
Manually changing the terminal width to 80 characters does the trick (check left vs right):
Is there an automated way to get line breaks at 80 characters? I tried some CLI converters but none seem to work.
The text was updated successfully, but these errors were encountered: