Skip to content

Conversation

@dmalan
Copy link
Member

@dmalan dmalan commented May 27, 2025

Docs recommend using shutil.get_terminal_size rather than os.get_terminal_size. Avoids need for exception handling.

shutil.get_terminal_size() is the high-level function which should normally be used, os.get_terminal_size is the low-level implementation.

@dmalan dmalan marked this pull request as ready for review May 27, 2025 12:02
@dmalan dmalan requested a review from rongxin-liu May 27, 2025 12:03
@dmalan dmalan assigned dmalan and rongxin-liu and unassigned dmalan May 27, 2025
@rongxin-liu rongxin-liu merged commit 950743f into main May 27, 2025
1 check passed
@rongxin-liu rongxin-liu deleted the dmalan-patch-1 branch May 27, 2025 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants