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