I'm looking for a method to have bash colorize the output from a command based on what stream it was written to the terminal from. Is there any way to get it to colorize per stream?
Like for example
stdout -> regular color
stderr -> red
program created streams that write to the terminal -> blue