From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Open multiple separate terminal buffers with multi-term in Emacs. Date: Wed, 02 Jun 2021 12:04:29 +0200 Message-ID: <87czt4tv3q.fsf@fastmail.fm> References: <87k0ncd9kd.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25220"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.12; emacs 27.2 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 02 12:33:34 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loOBp-0006IN-Sh for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 12:33:34 +0200 Original-Received: from localhost ([::1]:57886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loOBo-0000Dd-Uj for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 06:33:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loOB9-0000Bu-26 for help-gnu-emacs@gnu.org; Wed, 02 Jun 2021 06:32:51 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loOB3-0002y9-Tm for help-gnu-emacs@gnu.org; Wed, 02 Jun 2021 06:32:50 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 23C975C00DD for ; Wed, 2 Jun 2021 06:32:45 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 02 Jun 2021 06:32:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=tRG4wFsygNdY+DJRcXnTYxoUm2 wGASn81sGGTbMNL6w=; b=O7OHnKS9tuZFCAJ+iHUA0N6e3nTkXSVIQ6tQaTg4lw /1lDGhMBVUKVith5mVSl7jDRIzQzjH3uClG5tXJjTZEfFvOcMU8pw894YUTYJvqv AyXCVeWFQNwSfkrU2JSaPEQKFY3+aD2BzuiwCbotZJhSIeqSnirIsPG5ocTJZPu4 48+FgPsKw3qKsZ+OSWsOSiv5/lN9PwaVLjP53fqz2LUdOkZ4FV0H1qnOdNrf503r SBmblA4g7/0SAWwjORwxHJEzdA6DC1IntI7tmgOhOn06CFDbjDJXhW6TWLh1zbBJ IezjSM6SsoKimBAQKGT2CAFSmIInciz7ZgS8gx8xI6Pw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=tRG4wF sygNdY+DJRcXnTYxoUm2wGASn81sGGTbMNL6w=; b=M/FDuMRJl84POTGzxXJAQc ULXOiDKECoBYQyA9CLWmsGQQL6e3AQmZsCfs9bcksDRHeiiTDsBHUsueJXNcs/Z0 FmYJiaNNJKd2D7gGAhuNzMhJgWop4aw6j1KKEDEkPDGvuWI7rtplLa8bzPf8wgoH YUJzQwl7aUGPwlvlHtevvBR2S9ThgjKGbEN+UKRRBZUtPMBKvVrFbtRjOR+oGTs+ qevH2SagQ1JJWj2EqjELONg1rvaimgzx2YLWf0+uqobRydwlDGUK9ZFe6eEm4PUe d5Dn792HRXPEGo4zwn7fLp/aI6iIDk2q4wtl83HoMMQ06hK+551nADhiRWmYG2CA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeljedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffuffgjkfggtgesthdtre dttdertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghm vghrshesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepjedthfehgfejhe duveejieejgeekvedtkeeugeffgeegfeeghfeffedutdejfeffnecuffhomhgrihhnpehg ihhthhhusgdrtghomhdpghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhl rdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 2 Jun 2021 06:32:44 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=66.111.4.27; envelope-from=joostkremers@fastmail.fm; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130495 Archived-At: On Wed, Jun 02 2021, Hongyi Zhao wrote: > Based on the author said on GitHub, > : > > 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