When working in Emacs, I use the compile command (F12 by default) to run programs. When I run Cucumber in Emacs, Cucumber spits out ANSI colors that the Emacs compilation mode doesn't interpret. The result is ugly and hard to read. Here's a snippet of the *compilation* buffer showing the ugly:
^[[31m(::) failed steps (::)^[[0m
The command I'm using:
( cd ~/lab/rails/todolist && rake cucumber:all )
Versions:
The world would be sunshine and birds singing if I could:
Any ideas?
I use this to turn on ansi color interpretation in my compilation buffer:
(require 'ansi-color) (defun colorize-compilation-buffer () (let ((inhibit-read-only t)) (ansi-color-apply-on-region (point-min) (point-max)))) (add-hook 'compilation-filter-hook 'colorize-compilation-buffer)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With