[darcs-devel] darcs patch: introduce escape levels for output to terminal

Tommy Pettersson ptp at lysator.liu.se
Sat Apr 2 04:56:58 PST 2005


On Sat, Apr 02, 2005 at 07:22:33AM -0500, David Roundy wrote:
> And actually it's seeming pretty unclear.  Perhaps we want something more
> like a mix-and-match approach.
> 
> DARCS_DONT_ESCAPE_PRINTABLE_NONASCII
> DARCS_DONT_ESCAPE_NONASCII
> DARCS_DONT_ESCAPE_ASCII
> 
> Then the escape levels would be:
> 
> 0: (Nothing defined)
> 0 + DARCS_TRUST_ISPRINT: DARCS_DONT_ESCAPE_PRINTABLE_NONASCII
> 5: DARCS_DONT_ESCAPE_NONASCII
> 9: DARCS_DONT_ESCAPE_NONASCII + DARCS_DONT_ESCAPE_ASCII
> 
> with perhaps another alias
> 
> DARCS_DONT_ESCAPE_ANYTHING
> 
> equivalent to
> 
> DARCS_DONT_ESCAPE_NONASCII + DARCS_DONT_ESCAPE_ASCII
> 
> I think I'll not take your patch at the moment, and wait for something
> along these lines.

You were much quicker at coming up with a better idea than
I was... :-)  I'll start happily implementing this.


-- 
Tommy Pettersson <ptp at lysator.liu.se>




More information about the darcs-devel mailing list