From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.help Subject: Re: vterm and Meta? Date: Fri, 04 Aug 2023 00:49:15 +0600 Message-ID: <87351055ck.fsf@disroot.org> References: <83089d3fe2e4d5cf3369d7831a88877002a21557.camel@adminart.net> <87mszah9io.fsf@disroot.org> <9f21baba97a63391c85eabc4e097c48d73e9adce.camel@adminart.net> <871qglu8af.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: hw Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 03 20:52: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 1qRdR6-00064L-Qj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Aug 2023 20:52:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRdQb-0008T6-NE; Thu, 03 Aug 2023 14:52:05 -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 1qRdQX-0008Sw-54 for help-gnu-emacs@gnu.org; Thu, 03 Aug 2023 14:52:01 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRdQT-0001r5-8I for help-gnu-emacs@gnu.org; Thu, 03 Aug 2023 14:52:00 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8E31C4033B; Thu, 3 Aug 2023 20:51:53 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oMnfrpEqM7WG; Thu, 3 Aug 2023 20:51:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1691088712; bh=6rMA+iDGg8edOXS3jZoPlkiX0FxduftHTu0ZOpaDKzQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Evh4BCJxmS3ai+wZW3/ff3fKJJUwMDfbzhhwhNjkAN8ixwjumB9wgBLoTos8KClcK QFI/RpoFZA+lsh0T/scSlA6ruWaBanXc4bUSPaIcxKdfkd+L1CMLLtreLX60NuL/Gu /GUrB7bKuPWBxo8DZaFY5g0bbdd1pcnF6PDBVPtEinsFQ3qyw1tR1YzL2BfRpqjwbz 4o0sOYUwyLPKY8VHYAC7ggMcfMHjKxmibmfxdyLjOZFu6hzimw9lXVyLS+DEgl6eNI UpdvlrMAtQ1mLXfpI5WDAfuH21l19iUiLUU8ZqVkEG0ACM05/mENrZYdAkjB9IfYR1 nJ5UwZZT5DGSQ== In-Reply-To: (hw@adminart.net's message of "Thu, 03 Aug 2023 16:15:44 +0200") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-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:144576 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable hw writes: > 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 progr= ams >> > > > 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-configura= tion >> > > >=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? > VTerm doesn't usually flicker in most cases, but some heavy full-screen problems (like Emacs) flickers on my machine. However, my machine is 11 years old. So maybe my machine isn't fast enough. ;) >> > > 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 ES= C, 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? Eat makes running Emacs inside Emacs (inside Emacs...) completely effortless. :D =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmTL9qsACgkQVTX89U2I YWv8MQ//Wro4jiCmjWcPHylnNXfTOng/ne7JR7GMPzMugmzyFDG0QNdnRB7T6tVo 5X3jSOQQkrHZCsDBt4+ecYqoXcHRLxyUs054PgYVNYS9DL1L5aHeiIJnMrldNiEu Bo65+1wJCteYhjA1SOUwd0xSquUarfETPy6APeQySBlRTU2pCnBZ21i/PB/S2XZh Kt3w7M5kl4KAz7tvlOaE9b4UQTM6j1IW9wNRC2fAfZBxLG/6uZKpf0zudf8m7QuX HJTj0aWJbKC8ABYXgpO+sOCxh0hzPxUVrVOIRTQqbxGQI8GXKesJPMOiqoQXpcMy qZJZ9G0DBw8ucuUg/Jl4taWU7VJD78zynUPw8/Uqc4Z1uM3+9XlcL9aVYamSx7nT d98ar7uTXJhmbry4dcrmM9snHB+MIHnkj/uuVt2quPPeZy+pJz6w91plXugpRDQ7 WFZUxc5ukiF+AtXnaQVXc5ZS+kKSCOOqjMiE1h9HoOlsWz2IaBgE4Qc0JS48PHD3 ffSyZ/rDzKSGF/nD0aTVp7oqLJQ8q6qBcfeNoYu6e7RcruD+BGVtBTGk4EQhgB9O M+VGsPn9qRwLHUgWMqxw9CaJNAT3K1RAgnBHzS0rj9IXNTXafVNx3MTMNQ06e4qE ba+tNGOjE1+s8mwunl5A4bxIZcAhfzE0ZAiGkTZiks7r9xnFxh4= =zCYU -----END PGP SIGNATURE----- --=-=-=--