ID EN
OS

get_terminal_size

Python 3.11

Return the size of the terminal window as (columns, lines), tuple of type terminal_size.

Syntax

PYTHON
os.get_terminal_size(fd=STDOUT_FILENO, /)

See Also

terminal_size OSError shutil.get_terminal_size() Availability