New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
different font style / color for stderr #954
Comments
This can be achieved through bash itself, see https://serverfault.com/questions/59262/bash-print-stderr-in-red-color/570651#570651 |
Thanks, I had already skimmed through that page before creating this issue. While this solution is a great improvement over the wrappers you have to explicitely invoke, it's still a wrapper with some caveats (see comments). I haven't tried, but "This does not work on Cygwin" in particular would a real problem. Also, from what I did try, it has a major performance penalty. The following command took 9 seconds on my computer:
And this, adding the
So, while I might try that solution if need be, for now it rather supports my impression that this feature would better be handled by the terminal. BTW, I'm using zsh. But the solution sounds like it could be easily adapted to zsh. |
This is a neat idea and maybe a more efficient wrapping method can be found. On the other hand, as stdout and stderr might interweave even by character, to be on the safe side, probably every single character would need to be wrapped... |
OK, thanks for clarifying. |
I'm not sure whether it's even possible (and the terminal's business), but it would be cool to have a different font style and / or color for output written to standard error. (Workarounds I have found are for other OSes or wrappers you have to invoke around the actual command.)
Configuration could be:
Thanks!
The text was updated successfully, but these errors were encountered: