ondoho, I don't want it for editing log files, but I can imagine situations where someone might want to edit a logfile to remove all the irrelevant parts and just keep the ones relating to some particular problem or experiment they're doing. Or perhaps they might want to highlight certain parts.
Wysiwyg editors are what I was looking for, and listed a few initial examples of. SyncDraw is the best I've found so far, though I'm still dissatisfied and searching for a better one.
For me, being able to edit ANSI text files is really useful. I had an example just this morning. On the bug-gawk email list yesterday someone suggested a simple way to visually check how a regular expression works:
grep -E --color 'pattern'
It's a really neat quick guide to help debug some patterns. As an example try the pattern
'j{1,3}as' on the text file:
Code:
jas
jjasd
jjjasd
jjjjasd
jjjjjasd
Then try it again, but this time anchoring the expression to the beginning of each line
'^j{1,3}as'
Because output is in color, if I want to make notes for myself about it (I make notes for myself about
everything) then I have to either make my notes using ANSI text or HTML. HTML seems like overkill, especially since the original is in ANSI anyway.
More on your solution above for viewing ANSI text... it actually does a better job of displaying ANSI text than my suggestion of "less -R" does because the latter annoyingly resets the ANSI codes at the end of every line. Also "less -R" ignores position codes that are used in some ANSI art. So, thanks again for your suggestion.