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

dynamically detect terminal width to line wrap appropriately #90

Open
gruns opened this issue Jun 21, 2021 · 3 comments · May be fixed by #110
Open

dynamically detect terminal width to line wrap appropriately #90

gruns opened this issue Jun 21, 2021 · 3 comments · May be fixed by #110
Assignees
Labels
enhancement New feature or request

Comments

@gruns
Copy link
Owner

gruns commented Jun 21, 2021

instead of always wrapping at IceCreamDebugger.lineWrapWidth characters, dynamically detect the terminal width with os.get_terminal_size()

os.get_terminal_size() isnt implemented in py2, so os.environ['COLUMNS'] can be read directly as a fallback

if the terminal width cant be detected, then fall back to IceCreamDebugger.lineWrapWidth

see #89

@gruns gruns added the enhancement New feature or request label Jun 21, 2021
@gruns gruns self-assigned this Jun 21, 2021
@dawngerpony
Copy link

Hi @gruns - I raised #110 to see if I could implement this feature, it might need a little work though.

@rexzhang
Copy link

rexzhang commented Jul 1, 2022

Allow disable line wrap is also nice

@ranelpadon
Copy link

I think this is a useful feature since the line wrap could be annoying:

Allow disable line wrap is also nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants