JRuby Rails console and other quirks in Windows

I’m running JRuby for some Rails development and I’ve noticed some
quirks
with script/console as well as when running various rake tasks.

For example, running an RSpec test, this is what my output looks like:
e[32m.e[0m

Finished in 0.484 seconds

e[32m1 example, 0 failurese[0m

(there are some other funny characters in there not being shown by the
forum)

And often times inside of script/console my prompt till turn to ?> for
no
apparent reason and options like @p.to_yaml will print without carriage
returns and such.

Any thoughts or ideas on how I can beautify my console output so it
should
act appropriately?

I’m using cmd.exe in Windows as that’s what I’m limited to at the
moment…

View this message in context:
http://www.nabble.com/JRuby-Rails-console-and-other-quirks-in-Windows…-tf4588125.html#a13096413
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

On 10/8/07, MDWeezer [email protected] wrote:

(there are some other funny characters in there not being shown by the
forum)

Those are ANSI color escape sequences – you can turn them off by
removing the --colour option in your spec.opts file.

And often times inside of script/console my prompt till turn to ?> for no
apparent reason and options like @p.to_yaml will print without carriage
returns and such.

Any thoughts or ideas on how I can beautify my console output so it should
act appropriately?

There’s a known issue with the Rails script/console where the prompt
often will print before the output from the previous command. I
haven’t been able to track down why that happens :frowning:

Cheers,
/Nick


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Ahh, I didn’t even think about color codes…

Thanks for the response!

Nick S.-2 wrote:

apparent reason and options like @p.to_yaml will print without carriage
Cheers,
/Nick


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email


View this message in context:
http://www.nabble.com/JRuby-Rails-console-and-other-quirks-in-Windows…-tf4588125.html#a13097297
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email