Function: ghostel--password-regex-matches-cursor-row-p

ghostel--password-regex-matches-cursor-row-p is a natively compiled function defined in ghostel.el.

Signature

(ghostel--password-regex-matches-cursor-row-p)

Documentation

Return non-nil if the cursor row looks like a password prompt.

Matches ghostel-password-prompt-regex against the cursor row. Matching is case-insensitive, mirroring comint-watch-for-password-prompt.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--password-regex-matches-cursor-row-p ()
  "Return non-nil if the cursor row looks like a password prompt.
Matches `ghostel-password-prompt-regex' against the cursor row.
Matching is case-insensitive, mirroring `comint-watch-for-password-prompt'."
  (when-let* ((row (ghostel--cursor-row-text))
              (case-fold-search t))
    (string-match-p ghostel-password-prompt-regex row)))