Function: ghostel-copy-mode
ghostel-copy-mode is an interactive and natively compiled function
defined in ghostel.el.
Signature
(ghostel-copy-mode)
Documentation
Enter copy mode for selecting and copying terminal text.
Freezes the terminal (live output is paused) and makes the buffer
read-only. Standard Emacs navigation, search, and marking work
across the full scrollback. When ghostel-readonly-fast-exit is
non-nil press \q or M-x ghostel-readonly-exit (ghostel-readonly-exit) to exit; exiting
returns to whichever input mode was active before.
Key Bindings
ghostel-mode-map C-c C-t
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel-copy-mode ()
"Enter copy mode for selecting and copying terminal text.
Freezes the terminal (live output is paused) and makes the buffer
read-only. Standard Emacs navigation, search, and marking work
across the full scrollback. When `ghostel-readonly-fast-exit' is
non-nil press \\`q' or \\[ghostel-readonly-exit] to exit; exiting
returns to whichever input mode was active before."
(interactive)
(ghostel--ensure-ghostel-buffer)
(if (eq ghostel--input-mode 'copy)
(ghostel-readonly-exit)
(ghostel--enter-readonly
'copy t ":Copy"
(if ghostel-readonly-fast-exit
"Copy mode: press any printable key to exit"
(format "Copy mode: %s or %s to exit"
(substitute-command-keys "\\[ghostel-copy-mode]")
(substitute-command-keys "\\[ghostel-semi-char-mode]"))))))