From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: hw Newsgroups: gmane.emacs.help Subject: Re: vterm and Meta? Date: Thu, 03 Aug 2023 16:15:44 +0200 Message-ID: References: <83089d3fe2e4d5cf3369d7831a88877002a21557.camel@adminart.net> <87mszah9io.fsf@disroot.org> <9f21baba97a63391c85eabc4e097c48d73e9adce.camel@adminart.net> <871qglu8af.fsf@disroot.org> 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="33168"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 03 16:16:37 2023 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 1qRZ80-0008U4-SI for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Aug 2023 16:16:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRZ7R-0003aX-0U; Thu, 03 Aug 2023 10:16:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRZ7I-0003aH-Vb for help-gnu-emacs@gnu.org; Thu, 03 Aug 2023 10:15:52 -0400 Original-Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.217]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRZ7F-00022E-Rt for help-gnu-emacs@gnu.org; Thu, 03 Aug 2023 10:15:52 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1691072144; cv=none; d=strato.com; s=strato-dkim-0002; b=hqFhpuKurdUGNMlIIh4r0qvpPtj2JU5XEHijrjV+FXK/aDoHma1rBSk3LKANBoUEgM m036moo6IFx9I9Np7Qrs8hbQbRBd3/2LV+hJfNHwgpfsTaDH3+OEe8P6dWi3Pd0THwPC bj5ZQtyOn8OiWT6uU90fad69roWik1QMcJ5N9kNztJlKRJ6gfxeg5oC9jtObj+GV8oVZ ZJi1VlYxasife2F9cpRQXibJOGfX5N6nmwSBdnqeBjN8JZFsbZqvX4Ogg6gx9Qg9dNhn gpaNUxleEKkh4DhaigVxpxst9vHjkMDfBKtVObOjq6Yalube8a6IDPxmC0Q4nzRrTrth 2g5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1691072144; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=7sf0e2Xcp1apFhjzeXMTenvpI9rVlvFLv0C9lvtdVAw=; b=kaRMvTYyq8fj8jq76SfaMye7Ef3TfnYnq6sk/JvtKNekWlzq8wNaGW4A+vY0S04mwM DvUC3circV5eownXUGM1nnbxKZwTYdsVftpp1ESgGMjf7epX3LFHQke+skav9lXUwS/I p2n/7+YxwazG/1g42MPZAno1wzspX52koiBvQEo1zK6U9qBdN9vbsVNDaYO5n5EoOPpC /t215dFgoYxxFh77sux8kS20eX0tGefbG8s61zKJu6WcQ+3N+EJmcx4sHrWGj8NnUZXZ o7kXVs+NqJy0RNUBAjxrkGwxMNwXqtB6hxHQVOCzAspCxRQh7uJsP7M0abYsvGqXD+fU 4N4A== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1691072144; s=strato-dkim-0002; d=adminart.net; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=7sf0e2Xcp1apFhjzeXMTenvpI9rVlvFLv0C9lvtdVAw=; b=lj7dFTPaoeobaRinueN2mDo8yCyKhKXvdva6aG51L/wFYB/XKBT1AdrlPv+ovTxDMl Dcq0F7sjRtjrVVulvcyp/ZEg/xC655B2k9jEmApVxSsttRQz7vvVKVJny1FSMRwTcgsT HhF1xuozxlsB2blZ3jmzF4fqtETcgvFMtNwwFzo3nAiqQ363MrORes4Hli6eqHBgwlB9 rmsfccwU+DdEf4id34JnnXOwhi2HbGbCuzUJeQZfCnwPOxHid5vbJCE0PbCii6qTuXeR WCT0goRrl7hsLS4benuZ7eCGimLJh+txE7GFVqo6YY9EVlYzplmaMnilyHKy3WlxzbLp M9qA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1691072144; s=strato-dkim-0003; d=adminart.net; h=References:In-Reply-To:Date:To:From:Subject:Message-ID:Cc:Date:From: Subject:Sender; bh=7sf0e2Xcp1apFhjzeXMTenvpI9rVlvFLv0C9lvtdVAw=; b=DUcJBpLdAzFT4mmLFNpBapGRy3jih+t0qZztSRh+Jv0hgpJqsEWSVufx6I1ufnIPDq ioiKnofQjkdbeFT0KkDQ== X-RZG-AUTH: ":O2kGeEG7b/pS1Ey9Rna9iAZFrfz26y6zbtmqiE/f0+UVPWzfkhbRoUzSCTTNnjIupuXQshKqSG7HgphPv/kc/dnEALe7QeCxHdwC4O777bO3UXSe" Original-Received: from [IPv6:2a09:8e40:1122:f400:8de5:5d5e:4d6c:96eb] by smtp.strato.de (RZmta 49.6.6 AUTH) with ESMTPSA id Qbac0bz73EFihLM (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Thu, 3 Aug 2023 16:15:44 +0200 (CEST) In-Reply-To: <871qglu8af.fsf@disroot.org> Received-SPF: none client-ip=81.169.146.217; envelope-from=hw@adminart.net; helo=mo4-p00-ob.smtp.rzone.de 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144566 Archived-At: On Wed, 2023-08-02 at 15:02 +0600, Akib Azmain Turja wrote: > hw writes: >=20 > > On Wed, 2023-08-02 at 01:01 +0600, Akib Azmain Turja wrote: > > > hw writes: > > >=20 > > > > Hi, > > > >=20 > > > > I'm trying out vterm and it turns out that I can't use the ESC key > > > > when within a vterm buffer: i. e. I don't have the meta key anymore > > > > because that gets sent to the terminal rather than emacs. > > > >=20 > > > > According to [1], I could maybe remove the ESC key from vterm-mode-= map > > > > --- but it seems desirable to be able to use the ESC key for progra= ms > > > > that might run in vterm. > > > >=20 > > > > How do you deal with this? Do you use another key for the meta key > > > > other programs are less likely to make use of than the ESC key? > > > >=20 > > > >=20 > > > > [1]: https://github.com/akermu/emacs-libvterm#shell-side-configurat= ion > > > >=20 > > > >=20 > > >=20 > > > I use Eat BTW. > >=20 > > Eat? Is that another terminal for emacs? >=20 > Yes. https://codeberg.org/akib/emacs-eat :D > Disclaimer: I'm the author. ;) Cool, it looks interesting :) I haven't seen vterm flicker, though. Perhaps it's because I'm running emacs on wayland? > > > Eat doesn't bind 'ESC', instead it binds 'ESC ESC' to > > > send ESC. This allows me to send meta-keys. When I need to send ESC= , I > > > just press ESC twice. > >=20 > > So do you also need to use ESC as Meta key? >=20 > I usually use Alt as Meta key, but I can also use ESC as the meta > (though I hardly do that, Alt is easier for me). Yes, Alt is much easier. It never worked before, though. > > > I believe this can be done in Vterm too. > >=20 > > Perhaps it can ... It would be easier if I could use Alt instead of > > ESC for Meta. How could I do that? >=20 > VTerm is a nice terminal emulator, but it's key bindings are kinda > messed up IMHO. You need to fix it yourself. It isn't tough, but I > forgot exactly how to do it. Hm, I've found that I can't use emacs on a remote machine when connecting via ssh in vterm to a tmux session on that machine because the local emacs intercepts the key presses and it uses them for itself before they make it to the remote emacs. I'm not sure what to do about that yet ... Mabe eat is the way to go?