Function: ghostel--line-mode-prompt-on-screen-p
ghostel--line-mode-prompt-on-screen-p is a natively compiled function
defined in ghostel-line-mode.el.
Signature
(ghostel--line-mode-prompt-on-screen-p)
Documentation
Return non-nil when a real OSC 133 prompt char sits on the cursor's row.
Only a ghostel-prompt property counts (no regex or cursor fallback),
so line mode can tell an inner shell prompt reached via tmux/screen passthrough
from a raw fullscreen TUI when deciding whether to enter on the alt screen.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-line-mode.el
(defun ghostel--line-mode-prompt-on-screen-p ()
"Return non-nil when a real OSC 133 prompt char sits on the cursor's row.
Only a `ghostel-prompt' property counts (no regex or cursor fallback),
so line mode can tell an inner shell prompt reached via tmux/screen passthrough
from a raw fullscreen TUI when deciding whether to enter on the alt screen."
(when-let* ((cursor ghostel--cursor-char-pos)
(bol (save-excursion (goto-char cursor)
(line-beginning-position))))
(and (text-property-not-all bol cursor 'ghostel-prompt nil) t)))