docs: def _add_throughput(self, y, x, width, op, title, available, used):
          """ Write a single throughput measure to a row """
          percent = float(used) / available
          self.win.addstr(y, x, "[")
          # Because we have disabled scrolling, writing the lower right corner
          # character in a terminal can throw an error (this is inside the curses
          # implementation). If that happens (and it will only ever happen here),
          # we should just catch it and continue.
          try:
              self.win.addstr(y, x + width - 1, "]")
          except curses.error:
              pass
          x += 1
          right = "%.1f/%d:%s" % (used, available, op)
          pieces = self._progress_bar(width - 2, percent, title, right)
          for color, text in pieces:
              self.win.addstr(y, x, text, curses.color_pair(color))
              x += len(text)