Function: ghostel-clear
ghostel-clear is an interactive and natively compiled function defined
in ghostel.el.
Signature
(ghostel-clear)
Documentation
Clear the visible screen, preserving scrollback history.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel-clear ()
"Clear the visible screen, preserving scrollback history."
(interactive)
(when ghostel--term
(ghostel--write-vt ghostel--term "\e[H\e[2J")
(setq ghostel--force-next-redraw t)
(ghostel--invalidate)
;; Send form-feed to the shell so it redraws its prompt.
(ghostel--write-pty ghostel--term "\f")))