code: def _height_and_width(self):
          
  
          # In Python 3.3+ we can let the standard library handle this
          if GTS_SUPPORTED:
              return os.get_terminal_size(self.stream_fd)
  
          window = get_csbi(self.stream_fh).srWindow
          return TerminalSize(window.Right - window.Left + 1, window.Bottom - window.Top + 1)
docs: Query console for dimensions
          Returns named tuple (columns, lines)