doomemacs / doomemacs/core

kkp.el mistranslates inputs when connected to Emacs over SSH

Open
#8,128 3 comments 0 reactions 0 assignees View on GitHub
:os tty
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### I confirm that...

- [x] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.

- [x] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.

- [x] The issue can be reproduced on the **latest** available commit of Doom.

- [x] The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. *(Unstable versions end in .50, .60, or .9x)*

### Expected behavior

Various keybindings are broken when enabling `:os tty`. Pressing `C-/` gets translated as `C-@`, and `C-c C-c` doesn't work on vterm.

### Current behavior

I don't have a backtrace, but disabling the entire block from [`os/tty/config.el`](https://github.com/doomemacs/doomemacs/blob/master/modules/os/tty/config.el#L48-70) fixes it. No errors are shown.

I think it used to work before https://github.com/doomemacs/doomemacs/commit/07dff9918464578be3136a786969d274a0c44d40 was landed, but haven't properly bisected yet.

### Steps to reproduce

Path 1:
1. Open the most version of Kitty on macOS
2. ssh somewhere where doom emacs is installed and launch it
3. Open some file
4. Edit the file
5. Try to press `C-/`
6. Emacs complains about `C-@` not being defined

Path 2:
3. Open vterm
4. Try to press `C-c`
5. Various escape characters get received.
6. `vterm-copy-mode` doesn't work either

### System Information

https://pastebin.com/v2ptAV5C

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.