Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

clint.textui.maxwidth context manager #2

Open
kennethreitz opened this issue Mar 22, 2011 · 2 comments
Open

clint.textui.maxwidth context manager #2

kennethreitz opened this issue Mar 22, 2011 · 2 comments

Comments

@kennethreitz
Copy link
Owner

from clint.textui import maxwidth, puts

with maxwidth(80):
    puts('something extremely long')

Could be tricky to impliment w/ indents.

@kennethreitz
Copy link
Owner Author

I'd like to make the iterator progress dots/bars honor this too... Not sure how...

@wkentaro
Copy link
Contributor

What you expect is like this?
https://gist.github.com/wkentaro/becd681717143bdd1415

I'm not sure how to handle the nested one.

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

No branches or pull requests

2 participants