[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Colored error messages

Yu Co

12/7/2006 10:49:00 PM

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-....

7 Answers

Eric Hodel

12/7/2006 10:51:00 PM

0

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.

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

I LIT YOUR GEM ON FIRE!


Suraj Kurapati

12/7/2006 11:45:00 PM

0

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-....

Wilson Bilkovich

12/8/2006 12:10:00 AM

0

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.
>

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

Yu Co

12/8/2006 3:28:00 AM

0

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-....

Daniel Finnie

12/8/2006 3:41:00 AM

0

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
>
>

KDr2

12/8/2006 4:18:00 AM

0

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

Yu Co

12/10/2006 11:18:00 PM

0

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-....