Function: ghostel-copy-all

ghostel-copy-all is an interactive and natively compiled function defined in ghostel.el.

Signature

(ghostel-copy-all)

Documentation

Copy the entire scrollback buffer to the kill ring.

Key Bindings

ghostel-mode-map C-c M-w

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel-copy-all ()
  "Copy the entire scrollback buffer to the kill ring."
  (interactive)
  (when ghostel--term
    (let ((text (ghostel--copy-all-text ghostel--term)))
      (when (and text (> (length text) 0))
        (kill-new text)
        (message "Copied %d characters to kill ring" (length text))))))