On Thu, Mar 10, 2011 at 11:53:22AM -0800, Micah Cowan wrote:
> 
> It wouldn't be difficult to write as a separate program, which is really
> how this should be handled. You could redirect a pipeline's STDOUT and
> STDERR to individual named pipes (FIFOs), and have a separate program
> read from both pipes, inserting highlights around any data it copies
> from the STDERR pipe.

I cobbled up such a program (or pair of programs in the case) a while ago.
It'd run stdin & stdout through a pty,  and stderr through a seperate FIFO.

I'd then run a shell within this environment.  One thing I found wrt the
version of bash being used was that it would not enable job control.

It seems bash wanted stderr to be a pty as well,  however a simple change
removed that limitation in bash.

.pdf

Reply via email to