Re: Colored kernel messages on serial console
Mouse <[email protected]> Tue, 28 Jul 2026 07:49:17 -0400 (EDT)
| Newsgroups | gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
[timo@, quoting me]
>> it turns grepping the kernel log into a painful exercise to say the
>> least.
> No, same as with timestamps, those color sequences don't end up in
> the log.
Not the internal logs of the machine that's issuing the output,
perhaps. But you wrote of this in the context of serial console; logs
kept by whatever the console is connected to will, unless software
specifically filters it out, include them. My (admittedly limited)
experience is that one of the major benefits of using a serial console
is that it can capture things that *don't* make it to the machine's own
logfiles.
[quoting uwe@]
> If you find that useful, [] [j]ust do it and use it for yourself.
> [...] Many folks here carry (often a lot of) their own tweaks and
> patches.
I agree. I have, depending on which NetBSD rev you're talking about,
from 178 to 899 commits of semi-private patches. ("Semi-" because
anyone can fetch them but, probably in large part because I don't
advertise them much, few do.) While none of them are specifically
colouring of console output, plenty of them are similar enough.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML [email protected]
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B