Exscript.util.tty module¶
TTY utilities.
-
Exscript.util.tty.
get_terminal_size
(default_rows=25, default_cols=80)[source]¶ Returns the number of lines and columns of the current terminal. It attempts several strategies to determine the size and if all fail, it returns (80, 25).
Return type: int, int Returns: The rows and columns of the terminal.