Variable: ghostel--password-mode-p
ghostel--password-mode-p is a buffer-local variable defined in
ghostel.el.
Documentation
Non-nil while a password prompt is currently active.
Set by ghostel--detect-password-prompt on the rising edge and
cleared by the handler when the password is submitted (or
aborted). Used to render the mode-line indicator and to keep
the rising-edge detector from running its hook twice for one
prompt.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
;;; Password prompt detection
;; Mirrors libghostty's heuristic (canonical mode + echo off, see
;; ghostty/src/termio/Exec.zig) so password input from sudo/ssh/gpg/etc is read
;; through `read-passwd' instead of streamed through Emacs's key handling (where
;; it would land in `view-lossage' and the recent-keys ring). Falls back to a
;; regex match on the cursor row for cases where the local tty's echo state
;; can't be observed — remote ssh sessions, programs that don't toggle echo.
(defvar-local ghostel--password-mode-p nil
"Non-nil while a password prompt is currently active.
Set by `ghostel--detect-password-prompt' on the rising edge and
cleared by the handler when the password is submitted (or
aborted). Used to render the mode-line indicator and to keep
the rising-edge detector from running its hook twice for one
prompt.")