Tuesday, May 4, 2010

Re: escape sequence in output

On Tue, 4 May 2010, Dominique Pellé wrote:

> > # prints a green 'foo'
> > $ echo ${GREEN}foo${NOCOLOR}
> > foo
> >
> > # (myod is like od, but mine)
> > $ echo ${GREEN}foo${NOCOLOR} | myod -T
> > 00000000 1b 5b 33 32 6d 66 6f 6f 1b 5b 30 6d 0a ».[32mfoo.[0m¬«
> >
> > # '| col -b' doesn't seem to strip most things out:
> > $ echo ${GREEN}foo${NOCOLOR} | col -b
> > 32mfoo0m
>
>
> If makefile is written in this way, you can disable
> colors by invoking make as follows[...]

Sorry. Should have trimmed more of the original. Nothing to do with
makefiles. I was just providing an example where '| col -b' didn't seem
to filter out any color sequences at all, as far as I can tell. But it
would be nice to know whether I'm using it incorrectly, or whether Ben F
found 'col -b' useful for filtering some other kind of 'color'.

--
Best,
Ben H

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: