[rspec-users] Color output in pagers

2009-12-02 Thread P. A.
Hi. Is it possible to get color text in less, more or other pagers while piping the color output of Cucumber and RSpec? If it's not possible is there any other methods to work with the color text in a console without permanent “rewinding” the output back to the beginning? Thanks. -- Posted via

Re: [rspec-users] Color output in pagers

2009-12-02 Thread Paul Hinze
P. A. li...@ruby-forum.com on 2009-12-02 at 09:08: Is it possible to get color text in less, more or other pagers while piping the color output of Cucumber and RSpec? Have a look at these options for `less`: From LESS(1) man page: -r or --raw-control-chars Causes raw control

Re: [rspec-users] Color output in pagers

2009-12-02 Thread P. A.
I solve it by myself. To enable piping color output in Cucumber it needs to run the cucumber command with the -c option. $ cucumber -c | less #= color output To enable piping color output in RSpec it needs to set the RSPEC_COLOR environment variable to true. $ export RSPEC_COLOR=true $ spec

Re: [rspec-users] Color output in pagers

2009-12-02 Thread Paul Hinze
P. A. li...@ruby-forum.com on 2009-12-02 at 10:13: $ cucumber #= color output $ cucumber | less -R #= monochrome Ah now I see what you're saying. We're getting burned by this line: http://github.com/aslakhellesoy/cucumber/blob/master/lib/cucumber/formatter/ansicolor.rb#L20

[rspec-users] color output?

2007-10-02 Thread Jonathan Linowes
does story runner have commandline options ,eg to add color to output? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] color output?

2007-10-02 Thread David Chelimsky
Not yet. Patches welcome! On 10/2/07, Jonathan Linowes [EMAIL PROTECTED] wrote: does story runner have commandline options ,eg to add color to output? ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] color output?

2007-10-02 Thread David Chelimsky
On 10/2/07, David Chelimsky [EMAIL PROTECTED] wrote: Not yet. Patches welcome! Actually - there's nothing to patch yet - we plan to align the runners in the near future. So Not yet. Coming soon! On 10/2/07, Jonathan Linowes [EMAIL PROTECTED] wrote: does story runner have commandline

Re: [rspec-users] color output?

2007-10-02 Thread Jonathan Linowes
feature request: I have a story with a bunch of different scenarios that vary by just one (or two) things. In fact, within the story I've written a method that sets up the common set of Givens, and another than checks for a common set of results, e.g. Scenario no User record do

Re: [rspec-users] color output?

2007-10-02 Thread David Chelimsky
On 10/2/07, Jonathan Linowes [EMAIL PROTECTED] wrote: feature request: http://rspec.rubyforge.org/community/contribute.html http://rubyforge.org/tracker/?atid=3152group_id=797func=browse ___ rspec-users mailing list rspec-users@rubyforge.org