You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for posting this! i've put up a fix here #6 with an option to opt out of line wrapping disabling if for some reason you need to, it sounds like a sensible default though just erring on the side of other use cases I may not be aware of
This is now the exception you need to opt in for, I feel small fixed screen sizes are the exception, i've also updated the README accordingly - 405c4c0
Wordwrap can cause the ansi art to be badly distorted. This is especially the case in small terminals like Termux.
On reddit, a user named romkatv came up with a solution. https://www.reddit.com/r/zsh/comments/12ueb6b/comment/jhmlgez/?utm_source=share&utm_medium=web2x&context=3
Disable wordwrap before printing the art and then reenable it after.
print -n '\e[?7l' # turn off automatic margins (a.k.a. line wrapping)
iconv -f 437 < $ansi_filename
print -n '\e[?7h' # restore automatic margins
I'd have submitted this as a PR, but I didn't write the original code.
The text was updated successfully, but these errors were encountered: