dlang / dub

Package and build management system for D
MIT License
673 stars 230 forks source link

feature Request: Flag for dub don't process color tokens #2701

Closed MrcSnm closed 1 year ago

MrcSnm commented 1 year ago

System information

Pass a flag for not processing the colors. This is useful for being able to use executeShell in dub and even though you don't get the real time output, my program can process the color tokens and colorize itself.

This will also be useful for dub internal usage since I'm preparing a PR for dub dependencies compilation be parallelized. (Since you can't just log everything from more than one thread, the output would be confusing)

WebFreak001 commented 1 year ago

--color=always --color=never

see dub --help

MrcSnm commented 1 year ago

Doesn't work for me. I'm on Windows and dub has some kind of terminal emulator, so it will process its token on Windows API calls to change the conosle state. While color=never will simply won't output the ANSI escapes