Variable: tramp-yn-prompt-regexp

tramp-yn-prompt-regexp is a customizable variable defined in tramp.el.gz.

Value

"\\(?:Store key in cache\\? (y/n.*)\\|Update cached key\\? (y/n, Return cancels connection)\\|Error: no such container \".+\"\nCreate it now, out of image .+\\? \\[Y/n]:\\)[[:blank:]]*"

Documentation

Regular expression matching all y/n queries which need to be confirmed.

The confirmation should be done with "y" or "n". The regexp should match at end of buffer. See also tramp-yesno-prompt-regexp.

This variable was added, or its default value changed, in Emacs 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defcustom tramp-yn-prompt-regexp
  (rx (| (: "Store key in cache? (y/n" (* nonl) ")")
	 "Update cached key? (y/n, Return cancels connection)"
	 ;; distrobox.
	 (: "Error: no such container \"" (+ nonl) "\"\n"
	    "Create it now, out of image " (+ nonl) "? [Y/n]:"))
      (* blank))
  "Regular expression matching all y/n queries which need to be confirmed.
The confirmation should be done with \"y\" or \"n\".
The regexp should match at end of buffer.
See also `tramp-yesno-prompt-regexp'."
  :version "31.1"
  :type 'regexp)