Closed jonathanhirz closed 7 years ago
I don't know if this is just a theme setting, but some light googling leads me to believe this is ANSI character encoding in the build output not being displayed correctly. Is there a way to fix this on the flow side, or is this something Sublime or a plugin can fix?
This comes from hxcpp, it's supposed to detect when color is supported, and not emit it when it's not.
I don't have these in my sublime on any of my mac/windows/linux machines, even from fresh installs, so I'm not entirely sure where yours are coming from. flow
, sublime_flow
and sublime_haxe
don't mention color at all, so it's not configured by the build workflow.
Also when I run in terminal I get the colors, in sublime I don't.
You can set the HXCPP_NO_COLOUR define (or pass -nocolor
in the hxcpp flags) to force it off, but it is strange that it's enabled from sublime somehow.
The weird part is that sometimes I see these ESC characters, sometimes I don't. I'm pretty sure when I don't, there's no colors, but it's so infrequent it's hard to say. I do see some color when building in Terminal, but it's not really important to me, so I'll try out the no color options.
You can set it using flow config
as a user-specific default for all flow projects if you don't want to lug it around to every .flow file you use.
If I set -nocolor in the build/flags node, it says error: unknown option
It's project.build.hxcpp.flags
if talking to hxcpp directly. The other is haxe flags.
ah, yes that works great! Now trying to figure out the flow config so this can just be a default.
actually, I can just add this flag to my default project folder. Thanks for the help!