When viewing text with color (e.g. git diff) and doing a search, the search is colored in green and the rest of the line will not be colored any more.
You can try this:
echo "\e[33mSearch here, and the rest will be cleared\e[m" | less -R --use-color
The fg color should not be cleared by the search.
When viewing text with color (e.g.
git diff) and doing a search, the search is colored in green and the rest of the line will not be colored any more.You can try this:
The fg color should not be cleared by the search.