estream icon indicating copy to clipboard operation
estream copied to clipboard

Keep color

Open AckslD opened this issue 3 years ago • 2 comments

I'm looking to use estream to populate the quickfix list of what's in a terminal-buffer window. However, if I pipe the output to estream the color of the output is not kept. Is there a way to keep the color while still getting the formatted error messages?

AckslD avatar Apr 11 '21 16:04 AckslD

Hi @AckslD! I'm not sure of this, but I think a likely cause of this is the process you are piping to estream detecting it is being piped and disabling color output. There may be some way to work around this, depending on what exactly that process is. I'm not sure if that would cause any issues within estream though, as I haven't tried it.

JoshMcguigan avatar Apr 24 '21 19:04 JoshMcguigan

Thanks for your reply @JoshMcguigan! In the end I wrote some custom scripts that in the background copies the content of the terminal buffer, filters that through estream and then populates the quickfixlist based on that. In this way I can populate the quickfixlist while still having colored output. A bit hacky but seems to work pretty well :)

AckslD avatar May 01 '21 17:05 AckslD