code: def console_width(kwargs):
      Determine console_width."""
  
      if sys.platform.startswith('win'):
          console_width = _find_windows_console_width()
      else:
          console_width = _find_unix_console_width()
  
      _width = kwargs.get('width', None)
      if _width:
          console_width = _width
      else:
          if not console_width:
              console_width = 80
  
      return console_width
docs: Determine console_width.