Under the hood
Terminal capability detection now polls with a timeout instead of a fixed number of tries
What
The low-level routine that checks what a terminal supports, by reading its device-attribute responses, used to read from /dev/tty a fixed 64 times looking for a match. It now instead knows how many responses it expects, tracks a deadline, and polls every 2 milliseconds until either enough matching responses arrive or the deadline passes.
Why
This makes terminal capability detection more reliable across terminals and systems with different response speeds, instead of relying on a fixed number of attempts that might be too few or unnecessarily many.