Function: cider-repl-clear-output

cider-repl-clear-output is an interactive and byte-compiled function defined in cider-repl.el.

Signature

(cider-repl-clear-output &optional CLEAR-REPL)

Documentation

Delete the output inserted since the last input.

With a prefix argument CLEAR-REPL it will clear the entire REPL buffer instead.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl.el
(defun cider-repl-clear-output (&optional clear-repl)
  "Delete the output inserted since the last input.
With a prefix argument CLEAR-REPL it will clear the entire REPL buffer instead."
  (interactive "P")
  (if clear-repl
      (cider-repl-clear-buffer)
    (let ((inhibit-read-only t))
      (cider-repl--clear-region cider-repl-output-start cider-repl-output-end)
      (save-excursion
        (goto-char cider-repl-output-end)
        (insert-before-markers
         (propertize ";; output cleared\n" 'font-lock-face 'font-lock-comment-face))))))