bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hightlighting in bash


From: Derek Fawcus
Subject: Re: Hightlighting in bash
Date: Sat, 12 Mar 2011 15:59:49 -0800
User-agent: Mutt/1.4.2.3i

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

[Prev in Thread] Current Thread [Next in Thread]