Codebase list golang-github-go-kit-kit / 234a538
Reset bold attribute Serge Voilokov 7 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4141 // https://en.wikipedia.org/wiki/ANSI_escape_code#Colors.
4242
4343 var (
44 resetColorBytes = []byte("\x1b[39;49m")
44 resetColorBytes = []byte("\x1b[39;49;22m")
4545 fgColorBytes [][]byte
4646 bgColorBytes [][]byte
4747 )
2626 if err := logger.Log("a", 1); err != nil {
2727 t.Fatal(err)
2828 }
29 if want, have := "\x1b[32;1m\x1b[47;1ma=1\n\x1b[39;49m", buf.String(); want != have {
29 if want, have := "\x1b[32;1m\x1b[47;1ma=1\n\x1b[39;49;22m", buf.String(); want != have {
3030 t.Errorf("\nwant %#v\nhave %#v", want, have)
3131 }
3232 }