Integrating less's Case-Insensitive Search with POSIX ERE Patterns in ANSI-Capable Terminals
When viewing colorized output in less with a capable TERM setting, the pager forwards ANSI escape sequences to the terminal. Enabling case-insensitive search with the -i or -I options changes how subsequent / patterns match, but the boundary between the POSIX ERE pattern engine and terminal escape sequence pass-through leaves several interoperability details