Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WordWrap ¶
type WordWrap struct { Limit int Breakpoints []rune Newline []rune KeepNewlines bool // contains filtered or unexported fields }
WordWrap contains settings and state for customisable text reflowing with support for ANSI escape sequences. This means you can style your terminal output without affecting the word wrapping algorithm.
func NewWriter ¶
NewWriter returns a new instance of a word-wrapping writer, initialized with default settings.
func (*WordWrap) Close ¶
Close will finish the word-wrap operation. Always call it before trying to retrieve the final result.
Click to show internal directories.
Click to hide internal directories.