简体   繁体   English

Emacs-打开终端模拟器缓冲区功能

[英]Emacs - open terminal emulator buffer function

I need function that opens terminal emulator buffer if none exists, in that case it switches to that buffer. 我需要打开终端仿真器缓冲区(如果不存在)的函数,在这种情况下,它将切换到该缓冲区。

Does anyone know how to do this? 有谁知道如何做到这一点?

Mx term does exactly that. MX术语恰好可以做到这一点。 Use Mu Mx term if you want to force a new terminal buffer. 如果要强制使用新的终端缓冲区,请使用Mu Mx术语

From elisp: 从elisp:

(term "/bin/bash")

Mx ansi-term is more... Well, Ansi. Mx ansi-term更多...嗯,Ansi。 Allow for nifty pretty prompts (BTW take care of not making tramp trip over your fancy color prompt, this bit me just today when a Cx Cf /sudo::root@localhost:/someRootOnlyFile got stuck) 允许漂亮的漂亮提示(顺便说一句,请注意不要让您的花哨的颜色提示绊倒,直到今天Cx Cf / sudo :: root @ localhost:/ someRootOnlyFile卡住了,这对我来说还是一个问题)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM