Is there something (ideally something standard) that can wrap text whilst accounting for non-printable characters? I can't see any switches that say to account for non-printing characters, and the PS1 approach to flagging non-printing characters doesn't seem to work with fold or fmt. (where ^[ is the escape character) intuitively ought to produce the same thing in green text, but instead produces: 1 2 3 4 5 6 7 This question asks about wrapping text at a certain column, and people suggest using fold or fmt but as far as I can see, these simply count characters and don't allow for non-printing characters.
0 Comments
Leave a Reply. |