Skip to content
Myr

Added a comment explaining get_winterm_size().

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by H1SWarrior · committed by H1SWarrior · parent 9af0527 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:click/termui.py+2 added
174 unmodified lines
175 if shutil_get_terminal_size:176 sz = shutil_get_terminal_size()177 return sz.columns, sz.lines178179 # We provide a sensible default for get_winterm_size() when being invoked180 # inside a subprocess. Without this, it would not provide a useful input.181 if get_winterm_size is not None:182 size = get_winterm_size()183 if size == (0, 0):184 return (79, 24)
384 unmodified lines