From: Jeremy Stanley Date: Fri, 25 May 2018 06:10:52 +0000 (+0000) Subject: Retool word wrapping X-Git-Tag: 0.0.1~77 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=34d256939f22a5186b32d0628ed399e4b644e798;hp=34d256939f22a5186b32d0628ed399e4b644e798 Retool word wrapping Better handle CR+LF injection when encountering words longer than the terminal width. If a word is so wide it cannot be wrapped, leave it on a line by itself and allow the terminal to apply its own wrapping rules instead. Fixes a bug where excessive EOL markers would get added in such situations. Also more accurately handles skipping ANSI escape sequences in subsequently wrapped content. Include a word-wrapping test in the selftests to avoid regressing here. ---