Ansi color codes and best practices

Hello, I’m trying to get nice color log output in the web ui. However, I noticed that not all colors are coming through (eg gray). Are there resources on the preferred way to maximum color and styles (bold, etc) usage for Buildkite?

For gray, I’m doing: \e[37mHello\e[0m.

Hi @ngan,

Are you having trouble with any other colors?

I wonder if you might be running into the fact that \e[37m (“white”) is the default foreground color.

If that’s the issue, \e[38;5;251m or similar might give you what want?

https://buildkite.github.io/terminal-to-html/ is the library we use for ANSI rendering, but (apart from the inline image formats) we don’t get more specific in the documentation than a link to Wikipedia, I’m afraid.

All cool. I think that’s a good place for me to start looking. Thanks @matthewd!