Skip to content

Commit 428aed8

Browse files
committed
refactor terminal size retrieval to return both columns and rows
1 parent 3485344 commit 428aed8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

render50

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ def get(file):
447447
def get_terminal_size_fallback():
448448
try:
449449
# Attempt to get terminal size
450-
columns, _ = os.get_terminal_size()
450+
columns, rows = os.get_terminal_size()
451451
except OSError:
452452
# Fallback to default size if running in a non-terminal environment
453-
columns, _ = shutil.get_terminal_size(fallback=(80, 20))
454-
return columns
453+
columns, rows = shutil.get_terminal_size(fallback=(80, 20))
454+
return columns, rows
455455

456456

457457
def join(a, b):

0 commit comments

Comments
 (0)