Skip to content

Commit

Permalink
Merge pull request #399 from serge-v/master
Browse files Browse the repository at this point in the history
Reset bold attribute
  • Loading branch information
ChrisHines authored Nov 22, 2016
2 parents ad9aac1 + 234a538 commit c369f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion log/term/colorlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const (
// https://en.wikipedia.org/wiki/ANSI_escape_code#Colors.

var (
resetColorBytes = []byte("\x1b[39;49m")
resetColorBytes = []byte("\x1b[39;49;22m")
fgColorBytes [][]byte
bgColorBytes [][]byte
)
Expand Down
2 changes: 1 addition & 1 deletion log/term/colorlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestColorLogger(t *testing.T) {
if err := logger.Log("a", 1); err != nil {
t.Fatal(err)
}
if want, have := "\x1b[32;1m\x1b[47;1ma=1\n\x1b[39;49m", buf.String(); want != have {
if want, have := "\x1b[32;1m\x1b[47;1ma=1\n\x1b[39;49;22m", buf.String(); want != have {
t.Errorf("\nwant %#v\nhave %#v", want, have)
}
}
Expand Down

0 comments on commit c369f67

Please sign in to comment.