code: def pause(info='Press any key to continue ...', err=False):
      
      if not isatty(sys.stdin) or not isatty(sys.stdout):
          return
      try:
          if info:
              echo(info, nl=False, err=err)
          try:
              getchar()
          except (KeyboardInterrupt, EOFError):
              pass
      finally:
          if info:
              echo(err=err)
docs: This command stops execution and waits for the user to press any
      key to continue.  This is similar to the Windows batch "pause"
      command.  If the program is not run through a terminal, this command
      will instead do nothing.
  
      .. versionadded:: 2.0
  
      .. versionadded:: 4.0
         Added the `err` parameter.
  
      :param info: the info string to print before pausing.
      :param err: if set to message goes to ``stderr`` instead of
                  ``stdout``, the same as with echo.