terminal_size#

astropy.utils.console.terminal_size(file=None)[source]#

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.