anxiousmodernman / candypaint

candy coated prompts for the ion shell
MIT License
7 stars 1 forks source link

Broken on ion master #3

Closed anxiousmodernman closed 6 years ago

anxiousmodernman commented 6 years ago

I did a build on the latest ion master, and the recommended usage now doesn't print colors, but instead the raw hex codes. Example: broken

anxiousmodernman commented 6 years ago

Update: this is a quoting issue. Candypaint is meant to be "shelled out" to, and it's not clear whether this is supported.

anxiousmodernman commented 6 years ago

Update: it's supposed to work, according to ion devs. Fixing will probably require some commits to upstream.

anxiousmodernman commented 6 years ago

We've found a workaround for this. Our binary can write to a temp file, and we source it in ion. The temp file exports one variable CANDY, and the current shell interprets the escape characters correctly.

anxiousmodernman commented 6 years ago

We did it, team