Sublime Forum

Ansi Escape issues

#1

Can’t seem to get colored text to work in the build window… I feel like I’m missing something obvious but I’m fairly new to this, so still not sure after searching around for a while.

At the moment I’m importing colorama into python… “print(colorama.Fore.RED + ‘test’)” will show red text in a terminal, but not in the build output in sublime.

This is my .sublime-project file.

{
    "folders":
    [
        {
            "path": ".",
        }
    ],
    "build_systems":
    [
        {
            "target": "ansi_color_build",
            "syntax": "Packages/ANSIescape/ANSI.sublime-syntax"
        }
    ]
}
0 Likes