You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default behavior of Click is to rewrap text based on the width of the terminal
At least on a mac terminal, that's not the case. For me, the output of shutil.get_terminal_size() is os.terminal_size(columns=210, lines=44). But click is wrapping all text to 80 characters and does not respond to resizes of the terminal before or during the program's execution.
This is a little jarring and it would be nice if this could either dynamically resize or offer a way to manually set it.
Environment:
Python version: 3.9
Click version: 8.1.2
The text was updated successfully, but these errors were encountered:
The default max width is 80 characters, which is pretty standard for help output and ensures a readable flow of text even at large widths. It can be changed by setting Context.max_content_width. For example:
According to the documentation click should:
At least on a mac terminal, that's not the case. For me, the output of
shutil.get_terminal_size()
isos.terminal_size(columns=210, lines=44)
. But click is wrapping all text to 80 characters and does not respond to resizes of the terminal before or during the program's execution.This is a little jarring and it would be nice if this could either dynamically resize or offer a way to manually set it.
Environment:
The text was updated successfully, but these errors were encountered: