fish-shell/build_tools
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
..
osx_package_resources welcome.html: Provide fallback font-families as we are unsure 2022-01-28 19:47:58 -08:00
osx_package_scripts Add missing newlines 2022-01-26 13:51:45 -08:00
diff_profiles.fish Use set -l to force use of a local variable 2020-05-15 08:25:07 +02:00
extract_help_sections.fish Add script to extract help sections 2021-08-23 18:01:31 +02:00
fish_xgettext.fish translations: Remove tmpdir from location 2024-03-10 16:40:58 +01:00
git_version_gen.sh Skip building version file if git describe fails the new perm check 2022-05-26 09:35:59 +02:00
list_committers_since.fish build_tools/list_committers_since: account for possibility of mktemp 2020-11-14 15:57:42 +01:00
littlecheck.py Update littlecheck to 3d8a08bd164a96f53aef2a00a818e8778808e95a 2022-12-23 18:49:41 +01:00
lsan_suppressions.txt Remove remaining mentions of curses 2024-02-23 16:36:10 +01:00
mac_notarize.sh macOS notarization: migrate from altool to notarytool 2022-12-26 15:25:42 -08:00
make_pkg.sh Use -DCMAKE_EXE_LINKER_FLAGS="-Wl,-ld_classic" 2023-12-07 22:12:40 -08:00
make_tarball.sh Remove trace of corrosion 2024-03-23 11:52:49 +01:00
osx_distribution.xml Fix welcome text, don't use logger. 2022-01-22 20:06:37 -08:00
pexpect_helper.py Enable focus reporting only just before reading from stdin 2024-04-06 11:22:19 +02:00
style.fish Remove C++ style/lint cruft 2024-01-07 15:12:21 +01:00