Colored error messages

Hi,

Does anyone know whether it is possible to write code which shows me
colored error messages after the validation detects an error?

Regards,
Y

···

--
Posted via http://www.ruby-forum.com/.

I'm pretty sure you have the wrong mailing list, but I have no idea which one you want.

···

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?

--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!

Yu Co <djhackebeil@yahoo.de> writes:

Hi,

Does anyone know whether it is possible to write code which shows me
colored error messages after the validation detects an error?

Regards,
Y

the script "script/server" of rails framework can do this,just read it.

···

--
For some reasons,my EMail had been changed to "KDr2[#]163.com" now...

NO GNUS is Bad News.

                                               ------yours Killy Draw

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.

--
Posted via http://www.ruby-forum.com/\.

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

···

On 12/7/06, Suraj Kurapati <snk@gna.org> 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.

Have I understand you correct that colored error message r not possible
yet?

Wilson Bilkovich wrote:

···

On 12/7/06, Suraj Kurapati <snk@gna.org> wrote:

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

--
Posted via http://www.ruby-forum.com/\.

No, they are possible. According to the other posters, you can just override the Exception/Backtrace class.

Dan

Yu Co wrote:

···

Have I understand you correct that colored error message r not possible yet?

Wilson Bilkovich wrote:

On 12/7/06, Suraj Kurapati <snk@gna.org> wrote:

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

Where can I find the Exception/Backtrace class?
Never heard of them before?

Daniel Finnie wrote:

···

No, they are possible. According to the other posters, you can just
override the Exception/Backtrace class.

Dan

--
Posted via http://www.ruby-forum.com/\.