You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Ctrl+F3 does not reach ncurses terminal bindings #37189
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Open a thread terminal in the Linux Chromium web client.
Run a Python curses program with screen.keypad(True) and log screen.get_wch() values.
Press Ctrl+F1, Ctrl+F3, and Ctrl+F4.
Compare with infocmp -1 xterm-256color: kf27=\E[1;5R.
Expected behavior
Ctrl+F3 reaches ncurses as KEY_F(27), matching the server's advertised TERM=xterm-256color.
Actual behavior
The terminal sends ESC[13;5~, which ncurses reads as literal characters. The adjacent function-key controls decode correctly. Bundled Ghostty deliberately uses this alternative F3 encoding; the mismatch is between that encoding and T3's advertised terminfo.
Impact
Minor bug or occasional failure. Affected function-key bindings do not fire; real-user frequency is unknown.
Version or commit
Reproduced on 1b14aade4de1db0c82b8d61ccfd9c011b04c3810, with final red/green proof against 7379f1969b0f4b579327cf81299ef8cc3ddf8e9c.
Environment
Linux, Chromium, trusted CDP keyboard events, real server PTY and ncurses. Physical keyboard, Electron, other operating systems, and mobile were not tested.
Activity