diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-19 22:12:26 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-19 22:12:26 +0300 |
| commit | b26212975b8db9a19181cb544ea712060c319607 (patch) | |
| tree | 4d02cd048b6c4c5ff8b14a17f402113b941ba515 /internal/io/dlog | |
| parent | 7ff8beef11fa664d5d07c8701935553046640b99 (diff) | |
Fix doubled colored output in dcat/dgrep by removing server-side coloring
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/io/dlog')
| -rw-r--r-- | internal/io/dlog/dlog.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 "" |
