fish-shell/src/tests
Johannes Altmanninger f285e85b0c Enable focus reporting only just before reading from stdin
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.
2024-04-06 11:22:19 +02:00
..
abbrs.rs abbr: expand command abbrs after decorators (#10396) 2024-03-27 17:17:55 +01:00
common.rs tests: Pass correct length for buffer 2024-04-03 20:15:17 +02:00
complete.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
debounce.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
editable_line.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
encoding.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
env.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
env_universal_common.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
expand.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
fd_monitor.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
highlight.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
history.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
input.rs Enable focus reporting only just before reading from stdin 2024-04-06 11:22:19 +02:00
input_common.rs Extended & human-friendly keys 2024-04-02 14:35:16 +02:00
key.rs Extended & human-friendly keys 2024-04-02 14:35:16 +02:00
mod.rs Extended & human-friendly keys 2024-04-02 14:35:16 +02:00
pager.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
parse_util.rs Fix regression in parse_util_process_extent 2024-03-24 16:34:36 +01:00
parser.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
reader.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
redirection.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
screen.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
std.rs Fix formatting of new test 2024-03-09 22:06:33 -06:00
string_escape.rs Reduce some numbers to make cargo test run faster 2024-02-02 16:44:36 +01:00
termsize.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
threads.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
tokenizer.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00
topic_monitor.rs Make test_init() return a scope guard 2024-03-24 16:33:35 +01:00
wgetopt.rs Move fish-rust to project root 2024-01-13 03:58:33 +01:00