def get_size(fallback=TERM_SIZE_FALLBACK):
from shutil import get_terminal_size<EOL>return get_terminal_size(fallback=fallback)<EOL>
Convenience copy of `shutil.get_terminal_size
        <https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size>`_.

        ::

            >>> get_terminal_size(fallback=(80, 24))
            os.terminal_size(columns=120, lines=24)