code: def input(self, more=False):
          
          sys.stdout.flush()
          if more:
              msg = more_prompt
          else:
              msg = main_prompt
          if self.style is not None:
              internal_assert(prompt_toolkit is not None, "without prompt_toolkit cannot highlight style", self.style)
              try:
                  return self.prompt(msg)
              except EOFError:
                  raise  # issubclass(EOFError, Exception), so we have to do this
              except (Exception, AssertionError):
                  logger.display_exc()
                  logger.show_sig("Syntax highlighting failed; switching to --style none.")
                  self.style = None
          return input(msg)
docs: Prompt for code input.