Shift-enter already inserted a newline in code, but terminals send it as plain Enter unless the app asks for the kitty keyboard protocol.
Probe supports_keyboard_enhancement() before the alt screen; if answered, push DISAMBIGUATE_ESCAPE_CODES, pop on exit and in the panic hook. Covers ghostty, kitty, WezTerm (needs enable_kitty_keyboard), iTerm2, foot, Alacritty, zellij.
tmux (no kitty protocol): send xterm modifyOtherKeys request (CSI > 4;2 m), reset on exit. crossterm 0.29 does not parse tmux's default ESC[27;2;13~, so tmux still needs extended-keys-format csi-u (documented in README).
/keys: shows each key as hx receives it plus whether the protocol is on, to debug herdr or any other layer.
Input box wraps long lines; height and cursor from wrapped rows (cap 10, then scrolls).
Tests: editor wrap/cursor + backslash unit tests, key-event test (shift-enter/enter/backslash), wrapped render test, /keys probe test, tui_smoke sends ESC[13;2u and answers the probe like a non-kitty terminal. tests/all.sh green.
Not verified: real terminals (ghostty, herdr, tmux, zellij). Width wrapping counts chars, not cell width (CJK/emoji can overflow a cell).
Shift-enter already inserted a newline in code, but terminals send it as plain Enter unless the app asks for the kitty keyboard protocol.
- Probe `supports_keyboard_enhancement()` before the alt screen; if answered, push `DISAMBIGUATE_ESCAPE_CODES`, pop on exit and in the panic hook. Covers ghostty, kitty, WezTerm (needs `enable_kitty_keyboard`), iTerm2, foot, Alacritty, zellij.
- tmux (no kitty protocol): send xterm `modifyOtherKeys` request (`CSI > 4;2 m`), reset on exit. crossterm 0.29 does not parse tmux's default `ESC[27;2;13~`, so tmux still needs `extended-keys-format csi-u` (documented in README).
- Fallbacks: alt-enter, ctrl-j, trailing `\\` + enter.
- `/keys`: shows each key as hx receives it plus whether the protocol is on, to debug herdr or any other layer.
- Input box wraps long lines; height and cursor from wrapped rows (cap 10, then scrolls).
Tests: editor wrap/cursor + backslash unit tests, key-event test (shift-enter/enter/backslash), wrapped render test, `/keys` probe test, tui_smoke sends `ESC[13;2u` and answers the probe like a non-kitty terminal. `tests/all.sh` green.
Not verified: real terminals (ghostty, herdr, tmux, zellij). Width wrapping counts chars, not cell width (CJK/emoji can overflow a cell).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Shift-enter already inserted a newline in code, but terminals send it as plain Enter unless the app asks for the kitty keyboard protocol.
supports_keyboard_enhancement()before the alt screen; if answered, pushDISAMBIGUATE_ESCAPE_CODES, pop on exit and in the panic hook. Covers ghostty, kitty, WezTerm (needsenable_kitty_keyboard), iTerm2, foot, Alacritty, zellij.modifyOtherKeysrequest (CSI > 4;2 m), reset on exit. crossterm 0.29 does not parse tmux's defaultESC[27;2;13~, so tmux still needsextended-keys-format csi-u(documented in README).\\+ enter./keys: shows each key as hx receives it plus whether the protocol is on, to debug herdr or any other layer.Tests: editor wrap/cursor + backslash unit tests, key-event test (shift-enter/enter/backslash), wrapped render test,
/keysprobe test, tui_smoke sendsESC[13;2uand answers the probe like a non-kitty terminal.tests/all.shgreen.Not verified: real terminals (ghostty, herdr, tmux, zellij). Width wrapping counts chars, not cell width (CJK/emoji can overflow a cell).