From: Joost Kremers <joostkremers@fastmail.fm>
To: help-gnu-emacs@gnu.org
Subject: Re: Open multiple separate terminal buffers with multi-term in Emacs.
Date: Wed, 02 Jun 2021 12:04:29 +0200 [thread overview]
Message-ID: <87czt4tv3q.fsf@fastmail.fm> (raw)
In-Reply-To: <CAGP6PO+tBNZ8oCjQb2ChAt8V=FiS=dAv=sd=GhxeCN8XtcSMEQ@mail.gmail.com>
On Wed, Jun 02 2021, Hongyi Zhao wrote:
> Based on the author said on GitHub,
> <https://github.com/manateelazycat/multi-term>:
>
> I mainly use Aweshell now, but I still maintain multi-term.el, feel
> free send PR to me, thank you!
>
> So, perhaps I should also give aweshell
> (https://github.com/manateelazycat/aweshell) a try.
That depends. From the looks of it, aweshell is to eshell what multi-term is to
term. The thing is, you have several choices when it comes to running a shell
inside Emacs. There is `M-x shell`, `M-x term` and `M-x eshell`. shell and term
both run a system shell (bash or zsh or whatever you like) as a subprocess and
display the output in a buffer. They have some differences in the way they
interact with Emacs. Details are described in the manual:
https://www.gnu.org/software/emacs/manual/html_node/emacs/Shell.html
Or in Emacs itself: `C-h i emacs RET shell RET`.
Eshell is a shell implementation written in Elisp. That's to say, it's the Elisp
equivalent of bash, zsh, etc. It doesn't run a shell subprocess and everything
it does is done through Emacs (unlike term and shell, which basically just pass
every character you type to the subprocess).
Eshell generally integrates better with Emacs (e.g., you can use Elisp commands
in the shell), but it behaves differently from bash or zsh, so not everything
you know about the shell you normally use carries over.
Which method to use depends on personal preference, the tasks you normally do on
the shell and probably on other factors as well. M-x term is perhaps the easiest
to start with, because everything basically works in the same way as when
running a shell in a terminal emulator such as xterm, rxvt, Terminal, etc. You
just need to know about line mode and char mode, and how to switch between them.
With M-x shell, you don't need to bother with that, but certain things won't
work. (For example, try running `htop` in both.) Eshell is the most emacs-y of
the three. Its integration with Emacs is great and it's a good shell too, but
its command syntax is different once you get to more powerful stuff such as for
loops.
--
Joost Kremers
Life has its moments
next prev parent reply other threads:[~2021-06-02 10:04 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-02 1:38 Open multiple separate terminal buffers with multi-term in Emacs Hongyi Zhao
2021-06-02 3:53 ` Jean Louis
2021-06-02 9:28 ` Hongyi Zhao
2021-06-02 9:35 ` Hongyi Zhao
2021-06-02 6:57 ` Joost Kremers
2021-06-02 9:56 ` Hongyi Zhao
2021-06-02 10:04 ` Joost Kremers [this message]
2021-06-02 11:07 ` Jean Louis
2021-06-02 13:09 ` Hongyi Zhao
2021-06-02 14:05 ` Hongyi Zhao
2021-11-15 7:37 ` Thien-Thi Nguyen
2021-11-15 7:44 ` Hongyi Zhao
2021-11-15 9:12 ` Thien-Thi Nguyen
2021-11-15 11:25 ` Hongyi Zhao
2021-11-15 12:12 ` Thien-Thi Nguyen
2021-11-15 23:35 ` Hongyi Zhao
2021-11-16 0:24 ` Hongyi Zhao
2021-11-17 3:26 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-17 4:31 ` Hongyi Zhao
2021-11-17 14:27 ` Stefan Monnier via Users list for the GNU Emacs text editor
2021-11-18 2:33 ` Hongyi Zhao
2021-11-20 3:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-11-26 20:56 ` Samuel Banya
2021-11-27 3:22 ` Hongyi Zhao
2021-11-27 21:45 ` Samuel Banya
2021-11-27 21:52 ` Samuel Banya
2021-11-28 2:59 ` Hongyi Zhao
2021-11-27 23:04 ` Samuel Banya
2021-11-28 4:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czt4tv3q.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.