From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Run multiple shells in Emacs. Date: Tue, 1 Jun 2021 07:54:54 +0800 Message-ID: References: <87pmx6cws0.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30992"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 01:56:02 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 1lnrlK-0007rP-8t for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 01:56:02 +0200 Original-Received: from localhost ([::1]:46898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnrlI-000198-5n for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 19:56:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnrkd-00018z-7l for help-gnu-emacs@gnu.org; Mon, 31 May 2021 19:55:19 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:40588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnrkU-0002hP-8M for help-gnu-emacs@gnu.org; Mon, 31 May 2021 19:55:17 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id t17so7145362ljk.7 for ; Mon, 31 May 2021 16:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ru1Yfekz3xIigVPa4B0Q+j7CbqQws+vxEUlLcqj4AQA=; b=PVPXc30VKS8xqDAcaosMx2+Lw/wrnnW/FgxLURbM0ocguhCK+rz50sVV7/rsgVAAWC QI/P3VnivJKPgU/cJL0ERWRYle+jCyJpSCVSqzml7x3YyfYXQ9eOY5Z2ZRdh5d/WSiSB aQ7CONBu9JBZT0U7LtpinqSV4/O235YihgAH03DIuaBIYmAJj+usqsicb3NzVROQXnpO MFVFZwMPNEn/47BGsHtkAzSFkAezQGeyNVnOyxN06J2CAjJ0Oo18XCmLfMy3PAc4ZjBX BITmjjbelERK1yhT+9Uman2N3W4pzWm8A+r2CMbL5xKHtFhBD978saQIi80BboaVXt7M vGlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ru1Yfekz3xIigVPa4B0Q+j7CbqQws+vxEUlLcqj4AQA=; b=mmd/N4DHjpThjSjsLPTE9xGbiDZ3YGn/l1PxANHzDH+L2skcUoe7HSWXN/QT/HzxFY xFgDD3PWuRzRjUolXCF+fshe/PUwwNMVx2oACe/3AtnIpRjSNqfBzmD3r8+21qBoGFYX krkNzGA37IVSI5C+9ekxhe1RuqoVKlsjtES9GlMkUum43lzgo10osDg+wA1r25klO/N+ 5o+r3iKrRfsXKsZrQwiQsRjb4bpcmSapmGS7fnZa8xwS9+eEul8/BliNO/iZzHWzNd+3 imIwCcB2S9sX6lSk6nGFeOWCBUPgkCq2ONiWr8vlQG6KmqgC5d6SfQYupqmnLefc42g5 iemw== X-Gm-Message-State: AOAM533zJJm6yz0jrBENcl15+hLtB/2feB1hptrh+1DR0dRScPPfyv/S QD0Y8a2zTADJRIgrgBtEu91pNbXhiIHKQmCsmO8= X-Google-Smtp-Source: ABdhPJwzEuH8+g6KljKZJzuxYFFnmNDbB9eTnThaJqkaHF02sseYVB8eYfBUlLN2uRQHLEs4em8EQwyb3K+IfUzKbLI= X-Received: by 2002:a2e:5c83:: with SMTP id q125mr17938510ljb.447.1622505306124; Mon, 31 May 2021 16:55:06 -0700 (PDT) In-Reply-To: <87pmx6cws0.fsf@telefonica.net> Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=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:130411 Archived-At: On Tue, Jun 1, 2021 at 7:24 AM =C3=93scar Fuentes wrote: > > Hongyi Zhao writes: > > > What's the preferable way to open multiple shell windows at the same > > time in Emacs? > > > > After searching with Google, I find the discussion here: > > > > > > > > Basically, there are two types of methods to accomplish this: > > > > 1. Write a simple function, just as the one suggested on the above webs= ite: > > > > (defun create-shell () > > "creates a shell with a given name" > > (interactive);; "Prompt\n shell name:") > > (let ((shell-name (read-string "shell name: " nil))) > > (shell (concat "*" shell-name "*")))) > > > > 2. Use an Emacs plugin/package, and I've found the following one: > > . > > > > What are the recommended ways to use Emacs based on this kind of techni= que? > > Aweshell does a lot of things and works with Eshell, not `shell' as your > first method. > > Plain `eshell' already supports multiple instances (see its docstring), > as well as `shell' (see its docstring). > > So if you want to open multiple shell buffers, you don't need neither a > new function nor a new package. > I want to use Emacs as an advanced terminal multiplexer similar to tmux. Now, I find the method described here: . Any hints/comments/suggestions will be highly appreciated. Regards --=20 Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China