1
0
mirror of https://github.com/beego/bee.git synced 2024-12-03 13:31:30 +00:00

Merge pull request #802 from GeekTree0101/bug/Geektree0101/fix-bold-attribute

[Bug] Bold message should be end with all attributes off(\x1b[0m)
This commit is contained in:
Ming Deng 2021-09-02 22:32:00 +08:00 committed by GitHub
commit 9a9dbc0d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ func NewModeColorWriter(w io.Writer, mode outputMode) io.Writer {
}
func Bold(message string) string {
return fmt.Sprintf("\x1b[1m%s\x1b[21m", message)
return fmt.Sprintf("\x1b[1m%s\x1b[0m", message)
}
// Black returns a black string