code: def loop_input(self, on_quit=None):
          
          # Start the init script
          self._run_script(
              self.__session, self._context.get_property(PROP_INIT_FILE)
          )
  
          # Run the script
          script_file = self._context.get_property(PROP_RUN_FILE)
          if script_file:
              self._run_script(self.__session, script_file)
          else:
              # No script: run the main loop (blocking)
              self._run_loop(self.__session)
  
          # Nothing more to do
          self._stop_event.set()
          sys.stdout.write("Bye !\n")
          sys.stdout.flush()
          if on_quit is not None:
              # Call a handler if needed
              on_quit()
docs: Reads the standard input until the shell session is stopped
  
          :param on_quit: A call back method, called without argument when the
                          shell session has ended