From b26212975b8db9a19181cb544ea712060c319607 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 19 Jun 2025 22:12:26 +0300 Subject: Fix doubled colored output in dcat/dgrep by removing server-side coloring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Server should never send colored output - all colorization should happen on the client side. This fix removes the colorization logic from the server-side processors (catprocessor.go and grepprocessor.go). Changes: - Remove brush.Colorfy() calls from server-side processors - Remove color-related imports and fields - Update dlog.Raw() documentation to reflect server sends plain output - Client-side coloring remains intact via dlog.Raw() This ensures proper separation of concerns and prevents doubled ANSI escape sequences in the output. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/io/dlog/dlog.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/io/dlog') diff --git a/internal/io/dlog/dlog.go b/internal/io/dlog/dlog.go index 5bb6445..044624e 100644 --- a/internal/io/dlog/dlog.go +++ b/internal/io/dlog/dlog.go @@ -238,6 +238,8 @@ func (d *DLog) Devel(args ...interface{}) string { } // Raw message logging. +// Raw logs messages from the server without the standard log formatting. +// Since server never sends colored output, client handles all colorization. func (d *DLog) Raw(message string) string { if d == nil { return "" -- cgit v1.2.3