less, ANSI colors, and search
Hi,
I'm having an annoying issue with less. What I want is to view logs with important stuff color coded, and be able to correctly use less's search function.
What happens is that less correctly displays color coded text, but offsets the search highlighting.
For instance, if I run "ls -l --color=always | less -R", and then search for some text, the highlighting will be offset if that text (or any text before it) is colored.
I tried forcing LESSANSIENDCHARS by doing a "export LESSANSIENDCHARS=m", but that didn't work.
"less --version" gives me "less 382+iso254", and I am running "SUSE LINUX Enterprise Server 9 (x86_64)".
I hope I am clear enough! Any help would be greatly appreciated!
Thank you
|