Re: Colored kernel messages on serial console
Chris Hanson <[email protected]> Tue, 28 Jul 2026 15:30:07 -0700
| Newsgroups | gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
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. Of course, that won=E2=80=99t catch things logged between boot and the = filter=E2=80=99s setup; maybe if that=E2=80=99s *really* needed, some = BPF or module hooks would work for it without imposing a ton of overhead = (especially on kernels not using it). -- Chris