helix-editor / helix

A post-modern modal text editor.
https://helix-editor.com
Mozilla Public License 2.0
33.55k stars 2.49k forks source link

Suspended will iterm2's key binding invalid #9721

Open ofzo opened 8 months ago

ofzo commented 8 months ago

Summary

Somtime when hx has been suspended, the default terminal key binding will be invalid ex: Ctrl-C will input "9;5u" Ctrl-Z will input "2;5u" Ctrl-T will input "6;5u" ....

image

Reproduction Steps

I tried this: 1. `hx` I expected this to happen: Instead, this happened: ### Helix log
~/.cache/helix/helix.log ``` please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines ```
### Platform macOS ### Terminal Emulator Iterm2 3.4.23 ### Installation Method brew ### Helix Version helix 23.10 (f6021dd0)
aukeroorda commented 8 months ago

I'm also occasionally experiencing this, but had no clue that it originated from helix! It was difficult/unclear to fix this, so I usually just closed out of my terminal. I do remember one time that the issue was gone after doing fg and Ctrl-z, but I don't remember if I gave any other input to helix in between those two commands.

Platform: macOS (Same) Terminal Emulator: Iterm2 3.4.23 (Same) Installation Method: Compiled from source (on branch #6417), but also had this before (installed from brew) Helix Version: helix 23.10 (e0c242b6)