Command to clear shell while using emacs shell

前端 未结 6 1057
梦毁少年i
梦毁少年i 2020-12-23 18:52

Is there a builtin command to clear shell while using shell in emacs?

If not, is there an elisp function to achieve the same?

6条回答
  •  执笔经年
    2020-12-23 19:28

    With your point in the *shell* buffer, run:

    C-c M-o

    or

    M-x comint-clear-buffer

    NOTE: This also works in *Python* shell, but doesn't seem to work in *eshell*.

提交回复
热议问题