Skip to content

dynamically detect terminal width to line wrap appropriately #90

Description

@gruns

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

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions