all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: hw <hw@adminart.net>
To: help-gnu-emacs@gnu.org
Subject: Re: vterm and Meta?
Date: Thu, 03 Aug 2023 16:15:44 +0200	[thread overview]
Message-ID: <a126e2ead880b40ff594af874b116167e82a4645.camel@adminart.net> (raw)
In-Reply-To: <871qglu8af.fsf@disroot.org>

On Wed, 2023-08-02 at 15:02 +0600, Akib Azmain Turja wrote:
> hw <hw@adminart.net> writes:
> 
> > On Wed, 2023-08-02 at 01:01 +0600, Akib Azmain Turja wrote:
> > > hw <hw@adminart.net> writes:
> > > 
> > > > Hi,
> > > > 
> > > > 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.
> > > > 
> > > > 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 programs
> > > > that might run in vterm.
> > > > 
> > > > 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?
> > > > 
> > > > 
> > > > [1]: https://github.com/akermu/emacs-libvterm#shell-side-configuration
> > > > 
> > > > 
> > > 
> > > I use Eat BTW.
> > 
> > Eat?  Is that another terminal for emacs?
> 
> 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.
> > 
> > So do you also need to use ESC as Meta key?
> 
> 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.
> > 
> > Perhaps it can ...  It would be easier if I could use Alt instead of
> > ESC for Meta.  How could I do that?
> 
> 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?




  parent reply	other threads:[~2023-08-03 14:15 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 11:55 vterm and Meta? hw
2023-08-01 12:12 ` Thibaut Verron
2023-08-01 14:21   ` hw
2023-08-01 14:40     ` how to configure Meta key with wayland (was: vterm and Meta?) hw
2023-08-01 15:05     ` vterm and Meta? Spencer Baugh
2023-08-01 16:36       ` hw
2023-08-03 19:56         ` Spencer Baugh
2023-08-01 15:09     ` Thibaut Verron
2023-08-01 16:25       ` hw
2023-08-01 19:54         ` Thibaut Verron
2023-08-02  0:39           ` hw
2023-08-02  7:54             ` Thibaut Verron
2023-08-02 14:21               ` hw
2023-08-02 14:29                 ` hw
2023-08-02 15:10                   ` Yuri Khan
2023-08-03 14:02                     ` hw
2023-08-03 19:46                     ` tpeplt
2023-08-03 21:32                       ` hw
2023-08-03 22:29                         ` tpeplt
2023-08-04 20:08                           ` hw
2023-08-04 21:20                             ` PierGianLuca
2023-08-06 16:32                               ` hw
2023-08-06 17:09                                 ` PierGianLuca
2023-08-06 17:39                                 ` Yuri Khan
2023-08-04 21:42                             ` tpeplt
2023-08-06 19:41                               ` hw
2023-08-06 19:54                                 ` Emanuel Berg
2023-08-02 15:05                 ` Thibaut Verron
2023-08-03 13:50                   ` hw
2023-08-01 19:01 ` Akib Azmain Turja
2023-08-02  0:45   ` hw
2023-08-02  9:02     ` Akib Azmain Turja
2023-08-02 18:01       ` Emanuel Berg
2023-08-03 14:15       ` hw [this message]
2023-08-03 18:49         ` Akib Azmain Turja
2023-08-04 20:30           ` hw

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=a126e2ead880b40ff594af874b116167e82a4645.camel@adminart.net \
    --to=hw@adminart.net \
    --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.