Function: term-kill-output

term-kill-output is an interactive and byte-compiled function defined in term.el.gz.

Signature

(term-kill-output)

Documentation

Kill all output from interpreter since last input.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
;;; Random input hackage

(defun term-kill-output ()
  "Kill all output from interpreter since last input."
  (interactive)
  (let ((pmark (process-mark (get-buffer-process (current-buffer)))))
    (kill-region term-last-input-end pmark)
    (goto-char pmark)
    (insert "*** output flushed ***\n")
    (set-marker pmark (point))))