Re: Colored kernel messages on serial console

[email protected] (Michael van Elst) Wed, 29 Jul 2026 05:33:45 -0000 (UTC)
Newsgroups gmane.os.netbsd.devel.kernel
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] (Chris Hanson) writes:

>I=E2=80=99m not always one to defend =E2=80=9Cthe UNIX philosophy,=E2=80=9D=
> but in this case root could redirect console output and route it =
>through a filter that applies arbitrary escape codes to it via =
>pattern-matching.

Yes, and maybe even more useful in some contexts. But for simple separation
of kernel vs. userland output it's hard to do as neither have formal syntax
rules that you could match.


>Of course, that won=E2=80=99t catch things logged between boot and the =
>filter=E2=80=99s setup;

Such a tool (and I am sure some already exist) would work on the other
side, e.g. the console server, or for postprocessing console server logs.