diplomat.utils.extract_frames.get_terminal_size

diplomat.utils.extract_frames.get_terminal_size(fallback: Tuple[int, int] = (80, 24))[source]

Get the size of the terminal.

Parameters:

fallback – The fallback size to use if one can’t be found.

Returns:

A tuple of two ints, the size of the terminal in characters and lines.