Shift+Enter in a TUI inside tmux needs three parts: a Rio binding, rio*:extkeys and an app that asks for extended keys
FactVerified 5 Nov 2026Holds anywhere
Fact. A statement and the evidence for it.
Statement#
For a TUI to see Shift+Enter inside tmux in the Rio terminal, set all three:
- In Rio, bind Shift+Enter to send the real key code
ESC [13;2u. - In tmux, add
rio*:extkeystoterminal-features. This lets tmux read that code from Rio and pass it on. - In the app, ask the terminal for extended keys at startup. Without this the app never gets Shift+Enter.
Evidence#
reagent fix: the app change was commit "ask the terminal for extended keys so Shift+Enter works". The user tested all three and confirmed "ok i think it works now".
Also found by searching
- Shift+Enter does not work in tmux inside Rio
- Shift+Enter inserts no newline in my TUI
- tmux extended keys rio