code: def stop(self):
          
  
          if self.enabled:
  
              term = self.term
              stream = self.stream
              positions = self.counters.values()
  
              if not self.no_resize and RESIZE_SUPPORTED:
                  signal.signal(signal.SIGWINCH, self.sigwinch_orig)
  
              try:
                  for num in range(self.scroll_offset - 1, 0, -1):
                      if num not in positions:
                          term.move_to(0, term.height - num)
                          stream.write(term.clear_eol)
  
                  stream.flush()
  
              finally:
  
                  if self.set_scroll:
  
                      self.term.reset()
  
                      if self.companion_term:
                          self.companion_term.reset()
  
                  else:
                      term.move_to(0, term.height)
  
                  self.process_exit = False
                  self.enabled = False
                  for cter in self.counters:
                      cter.enabled = False
  
              # Feed terminal if lowest position isn't cleared
              if 1 in positions:
                  term.feed()
docs: Clean up and reset terminal
  
          This method should be called when the manager and counters will no longer be needed.
  
          Any progress bars that have ``leave`` set to :py:data:`True` or have not been closed
          will remain on the console. All others will be cleared.
  
          Manager and all counters will be disabled.