mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-16 23:41:16 -03:00
At startup we query for - the cursor position (CSI 6 n) - kitty keyboard protocol support (CSI ? u) - terminfo capabilities via XTGETTCAP Since we don't wait for responses, those can leak into child processes. Some child processes like fzf cannot decode DCS replies. Plug the leak by ending each round of querying by asking for the Primary Device Attribute, and resume input processing only after a response has been received, (or ctrl-c as an escape hatch). This is a nice simplification. Tested with the lowest common denominator (putty, Terminal.app and st). Fixes #11079