Date: Tue, 19 Apr 2022 12:35:56 +0200 From: Fabian Keil <freebsd-listen@fabiankeil.de> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Changing kernel message colour when using vt(4) Message-ID: <20220419123556.675d881b@fabiankeil.de>
next in thread | raw e-mail | index | archive | help
--Sig_/xkN1e9ppUDlyhA3Wbr5o7Tm Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable After rebasing ElectroBSD from stable/12 to stable/13 kernel messages no longer appear green in the console. Reading UPDATING I've come to the conclusion that this is due to the change from sc to vt. Green kernel messages used to be enabled with the line: options SC_KERNEL_CONS_ATTR=3D(FG_GREEN|BG_BLACK) in the kernel configuration. According to vt(4) the kernel message colour is now supposed to be controlled with a line like: options TERMINAL_KERN_ATTR=3D(FG_LIGHTRED|BG_BLACK) After adding the line I still get white kernel messages, though. I also tried changing TERMINAL_KERN_ATTR in sys/sys/terminal.h: --- a/sys/sys/terminal.h +++ b/sys/sys/terminal.h @@ -136,7 +136,7 @@ typedef teken_color_t term_color_t; #ifdef SC_KERNEL_CONS_ATTR #define TERMINAL_KERN_ATTR SC_KERNEL_CONS_ATTR #else -#define TERMINAL_KERN_ATTR (FG_WHITE | BG_BLACK) +#define TERMINAL_KERN_ATTR (FG_GREEN | BG_BLACK) #endif #endif but this doesn't seem to have a noticeable affect either. Has anyone already figured out how to change the kernel message colour on stable/13 when using vt(4)? Fabian --Sig_/xkN1e9ppUDlyhA3Wbr5o7Tm Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTKUNd6H/m3+ByGULIFiohV/3dUnQUCYl6QjAAKCRAFiohV/3dU nfpGAKCXQy+CRSGrr9fcfEAbw66kHBgEFQCfUxmGRKXqV12cU4JDB8wTfq2trNs= =I1KQ -----END PGP SIGNATURE----- --Sig_/xkN1e9ppUDlyhA3Wbr5o7Tm--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220419123556.675d881b>