code: def run(self, writer, reader):
          
          self._page_data = self.initialize_page_data()
          self._set_lastpage()
          if not self.term.is_a_tty:
              self._run_notty(writer)
          else:
              self._run_tty(writer, reader)
docs: Pager entry point.
  
          In interactive mode (terminal is a tty), run until
          ``process_keystroke()`` detects quit keystroke ('q').  In
          non-interactive mode, exit after displaying all unicode points.
  
          :param writer: callable writes to output stream, receiving unicode.
          :type writer: callable
          :param reader: callable reads keystrokes from input stream, sending
                         instance of blessed.keyboard.Keystroke.
          :type reader: callable