Skip to main content
`Ctrl`+`K`

# terminal_size

astropy.utils.console.terminal_size(file=None)

  Deprecated since version 6.1: The terminal_size function is deprecated and may be removed in a future version. Use shutil.get_terminal_size instead.

  Returns a tuple (height, width) containing the height and width of the terminal.

  This function will look for the width in height in multiple areas before falling back on the width and height in astropy’s configuration.