summaryrefslogtreecommitdiff
path: root/internal/color/paint.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/color/paint.go')
-rw-r--r--internal/color/paint.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/color/paint.go b/internal/color/paint.go
index 2798ff7..5430acd 100644
--- a/internal/color/paint.go
+++ b/internal/color/paint.go
@@ -38,6 +38,8 @@ func Paint(sb *strings.Builder, text string, fg FgColor, bg BgColor) {
sb.WriteString(string(fg))
sb.WriteString(string(bg))
sb.WriteString(text)
+ sb.WriteString(string(BgDefault))
+ sb.WriteString(string(FgDefault))
}
// Reset background and foreground colors.
@@ -56,6 +58,9 @@ func PaintWithAttr(sb *strings.Builder, text string, fg FgColor, bg BgColor, att
sb.WriteString(string(bg))
sb.WriteString(string(attr))
sb.WriteString(text)
+ sb.WriteString(string(AttrReset))
+ sb.WriteString(string(BgDefault))
+ sb.WriteString(string(FgDefault))
}
// ResetWithAttr resets background, foreground and attributes.