Stateful ANSI coloring for Go