Home Download Buy Blog Forum Support

Ansi color codes in build output

Ansi color codes in build output

Postby darthdeus on Wed Sep 04, 2013 1:39 am

I've been playing around with Elixir package and when I run my tests via Cmd+B the output is colored, which works in terminal, but not in the sublime buffer (Sublime Text 2)

Image

Is there a way to fix this? I only found some solutions for the RubyTest package, but it doesn't work. I'm also getting a little different output in Sublime Text 3, is there a way to supress those lines at the end?

Image
darthdeus
 
Posts: 1
Joined: Wed Sep 04, 2013 1:36 am

Re: Ansi color codes in build output

Postby vp_arth on Sun Oct 20, 2013 3:23 pm

Is there any update for this?
vp_arth
 
Posts: 1
Joined: Sun Oct 20, 2013 3:22 pm

Re: Ansi color codes in build output

Postby mrubin on Fri Nov 01, 2013 4:28 am

I'm also looking to get this to work and haven't found anything useful yet. Please post back if you figure something out.
mrubin
 
Posts: 3
Joined: Fri Nov 01, 2013 4:27 am

Re: Ansi color codes in build output

Postby jbrooksuk on Fri Nov 01, 2013 11:22 am

It'd be pretty damn rad if this worked.
jbrooksuk
 
Posts: 689
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Ansi color codes in build output

Postby quarnster on Fri Nov 01, 2013 12:09 pm

Hint: recently found out that build systems support setting the syntax of the output panel.
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Ansi color codes in build output

Postby Yeraze on Sat Jan 11, 2014 3:30 am

Anyone ever get this to work in any useful way?
Yeraze
 
Posts: 2
Joined: Thu Jan 09, 2014 5:35 pm

Re: Ansi color codes in build output

Postby thorsten on Sat Feb 08, 2014 8:51 am

It looks like Sublime Text simply doesn't support ANSI color codes.

What I did was to download ansifilter from http://www.andre-simon.de/doku/ansifilt ... filter.php and modify the build output to filter the sequences.

This is an example for Bash Build System
Code: Select all
{
    "cmd"       : ["bash", "$file"],
    "selector"  : "source.shell",

    "windows": {
        "path"  : "$path;\\program files\\tools\\ansifilter",
        "cmd"   : ["bash", "$file", "|",  "ansifilter"],
        "shell" : true
    }
}


By the way: ansifilter needs two Mingw DLLs that are not included
thorsten
 
Posts: 1
Joined: Sat Feb 08, 2014 8:42 am

Re: Ansi color codes in build output

Postby morozgrafix on Tue Mar 18, 2014 8:08 pm

I just setup my Sublime Text 2 with build settings for both CasperJS and CasperJS test and was able to specify --no-colors options.

Here are the details: https://gist.github.com/morozgrafix/9626928
morozgrafix
 
Posts: 1
Joined: Tue Mar 18, 2014 8:06 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 12 guests

cron