Function: ghostel--line-mode-pause
ghostel--line-mode-pause is a natively compiled function defined in
ghostel-line-mode.el.
Signature
(ghostel--line-mode-pause)
Documentation
Drop line mode to semi-char while a full-screen app holds the alt screen.
Called by ghostel--line-mode-pre-redraw on a 1049/1047 transition into
the alt screen. Arms ghostel--line-mode-paused so the alt-screen-off cycle
re-enters line mode at the new prompt.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel-line-mode.el
(defun ghostel--line-mode-pause ()
"Drop line mode to semi-char while a full-screen app holds the alt screen.
Called by `ghostel--line-mode-pre-redraw' on a 1049/1047 transition into
the alt screen. Arms `ghostel--line-mode-paused' so the alt-screen-off cycle
re-enters line mode at the new prompt."
(ghostel--line-mode-teardown 'pause)
(setq ghostel--char-mode-override-active nil)
(setq ghostel--input-mode 'semi-char)
(ghostel--sync-read-only)
(use-local-map ghostel-semi-char-mode-map)
(setq ghostel--mode-line-tag nil)
(ghostel--mode-line-refresh)
(setq ghostel--line-mode-paused
(list :input "" :point-offset nil :mark-offset nil))
(message "Line mode paused; resumes when the TUI exits (%s to force now)"
(substitute-command-keys
"\\<ghostel-mode-map>\\[universal-argument] \\[ghostel-line-mode]")))