From: Wilson Bilkovich Date: 2006-12-08T09:10:11+09:00 Subject: Re: Colored error messages On 12/7/06, Suraj Kurapati wrote: > Eric Hodel wrote: > > On Dec 7, 2006, at 14:48 , Yu Co wrote: > >> Does anyone know whether it is possible to write code which shows me > >> colored error messages after the validation detects an error? > > > > I'm pretty sure you have the wrong mailing list, but I have no idea > > which one you want. > > OP probably wanted the Ruby on Rails list. > > Nevertheless, I've been pondering lately how effective would the act of > colorizing error messages and stack traces be against "scroll blindness" > (when lots of output scrolls by on your terminal and you have to hunt > around for relevant information)? > > It might be interesting to try. > In Rubinius, backtraces are instances of the Backtrace class, and they have methods you can override. Stay tuned, and you could make a colorized one. Heh