Bold message should be end with all attributes off(\x1b[0m)

This commit is contained in:
Geektree0101 2021-09-02 22:32:17 +09:00
parent 0d739375d1
commit 3b15b101e2
1 changed files with 1 additions and 1 deletions

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