Re: proposing patches (was: Colored kernel messages on serial console)

Taylor R Campbell <[email protected]> Wed, 29 Jul 2026 12:48:43 +0000
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
> Date: Tue, 28 Jul 2026 19:37:37 -0400
> From: Thor Lancelot Simon <[email protected]>
>=20
> I actually thought the "sysctl for bytes to be prepended; sysctl for byte=
s to
> be postpended" proposal was rather clever.  I wouldn't object to that goi=
ng
> in; I'd never set it, but it should default to unset.

For such a mechanism to work reliably you'd need to filter the output
through a little state machine (like our cnmagic state machine) to
escape the quoted content too.