How to make it wrap new line automatically by terminal width? #555
leejack1000
started this conversation in
General
Replies: 1 comment 1 reply
-
You can use a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Example:
func (m model) View() string { return fmt.Sprintf( "What’s your favorite Pokémon?\n\n%s\n\n%s", m.textInput.View(), "(esc to quit)", ) + "\n" }
Expect:
What’s your favorite
Pokémon?
Beta Was this translation helpful? Give feedback.
All reactions