When it's ambiguous and true, count ambiguous width characters as 1 character wide. If false, count them as 2 characters wide.
interface
WrapAnsiOptions
interface WrapAnsiOptions
- ambiguousIsNarrow?: boolean
- hard?: boolean
If
true, break words in the middle if they don't fit on a line. Iffalse, only break at word boundaries. - trim?: boolean
If
true, trim leading and trailing whitespace from each line. Iffalse, preserve whitespace. - wordWrap?: boolean
If
true, wrap at word boundaries when possible. Iffalse, don't perform word wrapping (only wrap at explicit newlines).