Emacs 退出终端

发布于 2024-12-04 22:26:09 字数 215 浏览 3 评论 0原文

当使用 Mx term 使用 Cx Co 在 Emacs 中运行终端模式时,我无法切换到另一个缓冲区来继续处理事情。我知道这可以通过 Mx shell 实现,但使用此命令时,shell 的某些方面不起作用(less、more、手册页等)。我想知道是否有办法解决这个问题,或者在使用终端模式时,您是否被限制在终端打开的缓冲区中,直到您退出。

When running terminal mode in Emacs using M-x term using C-x C-o I cannot switch to another buffer to continue working on things. I know that this is possible with M-x shell but with this command there are certain aspects of the shell that do not work (less, more, man pages, etc...). I was wondering if there is a way around this or if when using terminal mode you are confined to the buffer that the terminal is open in until you exit.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜点 2024-12-11 22:26:09

在终端模式下,您必须使用Cc o 切换到另一个缓冲区。 Cc 是“终端转义字符”

http://www .gnu.org/s/libtool/manual/emacs/Terminal-emulator.html

In terminal mode you have to use C-c o to switch to the other buffer. C-c is the "terminal escape character"

http://www.gnu.org/s/libtool/manual/emacs/Terminal-emulator.html

无人问我粥可暖 2024-12-11 22:26:09

假设您使用的是 Linux 发行版:

  1. Ctrl + d 终止终端仿真器进程
  2. Cck 然后 ENTER 终止关联的缓冲区

With the assumption that you are using a Linux distro:

  1. Ctrl + d to terminate the Terminal Emulator process
  2. C-c k then ENTER to kill the associated buffer
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文