We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
Since Python 3.3, the stdlib provides the function shutil.get_terminal_size(). Now that the project has dropped Python 2
support, the compatibility shim is no longer necessary.
The stdlib version returns a named tuple. So rather than indexing "0", can use the more self-documenting attribute "columns".
Docs available at: https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.