Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Text wrapping #59

Closed
jrmiller82 opened this issue Oct 29, 2015 · 4 comments
Closed

Feature Request: Text wrapping #59

jrmiller82 opened this issue Oct 29, 2015 · 4 comments

Comments

@jrmiller82
Copy link
Contributor

I'd love some sort of text wrapping; I can't figure out how to get text to wrap automatically without breaking in the middle of words. Thanks!

@jrmiller82
Copy link
Contributor Author

There's a decent MIT licensed text wrapper at https://github.com/mitchellh/go-wordwrap for examples. Maybe someway to make a UiParWrap function that wraps it and passes the width variable to it automagically?

Loving termui btw. Great work.

@jrmiller82
Copy link
Contributor Author

But it doesn't take into account your

 [words to be made red](fg-red) 

syntax in strings. Hmmm.

@jrmiller82
Copy link
Contributor Author

See Pull Request at #60

@jrmiller82
Copy link
Contributor Author

Gizak merged this witth some modification with commit 7dd60de

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants