mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 14:24:35 +08:00
f285e85b0c
Some terminals send the focus-in sequences ("^[I") whenever focus reporting is enabled. We enable focus reporting whenever we are finished running a command. If we run two commands without reading in between, the focus sequences will show up on the terminal. Fix this by enabling focus-reporting as late as possible. This fixes the problem with `^[I` showing up when running "cat" in gnome-terminal https://github.com/fish-shell/fish-shell/issues/10411. This begs the question if we should do the same for CSI u and bracketed paste. It's difficult to answer that; let's hope we find motivating test cases. If we enable CSI u too late, we might misinterpret key presses, so for now we still enable those as early as possible. Also, since we now read immediately after enabling focus events, we can get rid of the hack where we defer enabling them until after the first prompt. When I start a fresh terminal, the ^[I no longer shows up. |
||
---|---|---|
.. | ||
abbrs.py | ||
bind_mode_events.py | ||
bind.py | ||
cancel_event.py | ||
commandline.py | ||
complete-group-order.py | ||
complete.py | ||
cursor_selection.py | ||
disable_mouse.py | ||
eval-stack-overflow.py | ||
exit_handlers.py | ||
exit_nohang.py | ||
exit.py | ||
fg.py | ||
fkr.py | ||
generic.py | ||
histfile.py | ||
history.py | ||
isatty.py | ||
job_summary.py | ||
nullterm.py | ||
pipeline.py | ||
postexec.py | ||
private_mode.py | ||
read.py | ||
set_color.py | ||
sigint.py | ||
signals.py | ||
status.py | ||
stdin_nonblocking.py | ||
terminal.py | ||
torn_escapes.py | ||
tty_ownership.py | ||
undo.py | ||
wait.py | ||
wildcard_tab.py |