code: def get_output_margin(self, status=None):
          
          margin = self.get_reserved_space() + self.get_prompt(self.prompt).count('\n') + 1
          if special.is_timing_enabled():
              margin += 1
          if status:
              margin += 1 + status.count('\n')
  
          return margin
docs: Get the output margin (number of rows for the prompt, footer and
          timing message.