markbirbeck / sublime-text-shell-command

The ShellCommand plugin allows arbitrary shell commands to be run and their output to be sent to buffers or panels. The output can have a syntax associated with it, which makes it possible to build 'modes' that provide complex interactions.
MIT License
137 stars 25 forks source link

ANSI colours in output not escaped #79

Open fy2 opened 5 years ago

fy2 commented 5 years ago

Hi, I am trying to combine 'https://packagecontrol.io/packages/ANSIescape' with this package. This is because I see quite a few '<0x1b>' (unicode) chars in the shell command output that are not being formatted correctly.

For example if you were to run a cmd such as: grep --color=always search_term MyFile.txt

The shell command output would contain strange chars and not the escaped ANSI colours...

I have tried setting the syntax to ANSI, but that didn't help either (my knowledge of Sublime T3 is limited).

Thanks for this useful package.

MathieuAlphamosa commented 3 years ago

Did you found a solution? Seems like ANSI package isn't just a syntax definition and isn't trivial to apply to the panel output.