Hi -- hoping someone can help me sort through a key combination issue.
When I use a WSL terminal or a SSH terminal, alt-b works correctly in emacs to move the cursor back a word. However, when I enable Mosh in SSH, alt-b is broken in emacs, both going back a word and strangely selecting text in the opposite direction.
I tried some troubleshooting, running cat then typing alt-b. Here's what it printed in various shells:
- wsl:
^[b
- ssh:
^[b
- mosh:
^[^@^[b
Any idea why the extra data is getting appended in mosh for alt-b? I tried adding the environment variable:
MOSH_ESCAPE with value 1
But that didn't seem to help.
Also, if I manually invoke mosh (that is, run wsl, and execute mosh from the command line), alt-b works properly.
Grateful for any advice!
-Tim
Hi -- hoping someone can help me sort through a key combination issue.
When I use a WSL terminal or a SSH terminal,
alt-bworks correctly in emacs to move the cursor back a word. However, when I enable Mosh in SSH,alt-bis broken in emacs, both going back a word and strangely selecting text in the opposite direction.I tried some troubleshooting, running
catthen typingalt-b. Here's what it printed in various shells:^[b^[b^[^@^[bAny idea why the extra data is getting appended in mosh for
alt-b? I tried adding the environment variable:MOSH_ESCAPEwith value1But that didn't seem to help.
Also, if I manually invoke mosh (that is, run wsl, and execute mosh from the command line),
alt-bworks properly.Grateful for any advice!
-Tim