WrapContent enables or disables automatic wrapping of content. When enabled, content is wrapped to fit roughly two-thirds of the terminal width by default. For custom limits or non-TTY outputs, use WrapLimit instead.
(allow bool)
| 205 | // width by default. For custom limits or non-TTY outputs, use WrapLimit |
| 206 | // instead. |
| 207 | func (b *Box) WrapContent(allow bool) *Box { |
| 208 | b.allowWrapping = allow |
| 209 | return b |
| 210 | } |
| 211 | |
| 212 | // WrapLimit enables wrapping and sets an explicit maximum width for content. |
| 213 | func (b *Box) WrapLimit(limit int) *Box { |
no outgoing calls